Difference between revisions of "User getCommunicationHistory"

From Catglobe Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{HelpFiles}}
 
'''User_getCommunicationHistory'''  
 
'''User_getCommunicationHistory'''  
  
&nbsp;&nbsp; Get all communication history of user. <br>  
+
&nbsp;&nbsp;&nbsp;Get&nbsp;all communication history of user (which are aslo displayed in communication history tab).&nbsp;Such as: CATI, EMail...&nbsp;&nbsp;<br>  
  
'''Syntax&nbsp;<br>'''&nbsp; User_getCommunicationHistory (User Resource Id); <br><br>'''Arguments<br>'''&nbsp; User Resource Id: is a number.&nbsp;<br> <br>'''Return type'''<br>&nbsp;&nbsp; Array.
+
'''Syntax&nbsp;<br>'''&nbsp; User_getCommunicationHistory(UserResourceId); <br><br>'''Arguments<br>'''&nbsp; UserResourceId: is a number.&nbsp;<br> <br>'''Return type'''<br>&nbsp;&nbsp; Array of mail info
 +
 
 +
{| class="tableintopic" style="border-collapse: collapse; border: 1px solid #010101" width="1067" border="1" cellpadding="2"
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |
 +
'''Index'''
 +
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |
 +
'''Data type'''
 +
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" |
 +
'''Value'''
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
0
 +
| style="border: 1px solid #010101" width="356" |
 +
number
 +
| style="border: 1px solid #010101" width="356" |
 +
Primary key of the mail info
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
1
 +
| style="border: 1px solid #010101" width="356" |
 +
array
 +
| style="border: 1px solid #010101" width="356" |
 +
mail info 's date time
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
2
 +
| style="border: 1px solid #010101" width="356" |
 +
number
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's FromUserID
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
3
 +
| style="border: 1px solid #010101" width="356" |
 +
string
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's From
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
4
 +
| style="border: 1px solid #010101" width="356" |
 +
number
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's ToUserID
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
5
 +
| style="border: 1px solid #010101" width="356" |
 +
string
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's To
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
6
 +
| style="border: 1px solid #010101" width="356" |
 +
number
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's ParentResourceID
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
7
 +
| style="border: 1px solid #010101" width="356" |
 +
string
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's Path
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
8
 +
| style="border: 1px solid #010101" width="356" |
 +
string
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's Resource
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
9
 +
| style="border: 1px solid #010101" width="356" |
 +
string
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's Resource Type
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
10
 +
| style="border: 1px solid #010101" width="356" |
 +
string
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's Description
 +
|- align="left" valign="top"
 +
| style="border: 1px solid #010101" width="356" |
 +
11
 +
| style="border: 1px solid #010101" width="356" |
 +
string
 +
| style="border: 1px solid #010101" width="356" |
 +
Mail info 's Type
 +
|}
  
 
<br>'''Examples'''  
 
<br>'''Examples'''  
  
array userCommunicate= User_getCommunicationHistory(25455);<br>print (userCommunicate);<br><br>  
+
array userCommunicate= User_getCommunicationHistory(25455);<br>print (userCommunicate);<br>  
 +
 
 +
//{{8636,{2011,12,20,4,14,25,433,51},0,Empty,38390346,phong_user11,25455,BulkMailGroup_Outbox,Administrator,User,Subject,Bulkmail},{8637,{2011,12,20,6,42,24,13,51},0,Empty,38390346,phong_user11,25455,BulkMailGroup_Outbox,Administrator,User,Subject,Bulkmail}}
 +
<br>  
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.8.1
  
 
[[Category:User_Functions]]
 
[[Category:User_Functions]]

Latest revision as of 05:49, 22 December 2011

User_getCommunicationHistory

   Get all communication history of user (which are aslo displayed in communication history tab). Such as: CATI, EMail...  

Syntax 
  User_getCommunicationHistory(UserResourceId);

Arguments
  UserResourceId: is a number. 

Return type
   Array of mail info

Index

Data type

Value

0

number

Primary key of the mail info

1

array

mail info 's date time

2

number

Mail info 's FromUserID

3

string

Mail info 's From

4

number

Mail info 's ToUserID

5

string

Mail info 's To

6

number

Mail info 's ParentResourceID

7

string

Mail info 's Path

8

string

Mail info 's Resource

9

string

Mail info 's Resource Type

10

string

Mail info 's Description

11

string

Mail info 's Type


Examples

array userCommunicate= User_getCommunicationHistory(25455);
print (userCommunicate);

//{{8636,{2011,12,20,4,14,25,433,51},0,Empty,38390346,phong_user11,25455,BulkMailGroup_Outbox,Administrator,User,Subject,Bulkmail},{8637,{2011,12,20,6,42,24,13,51},0,Empty,38390346,phong_user11,25455,BulkMailGroup_Outbox,Administrator,User,Subject,Bulkmail}}

Availability

Version 5.8.1