Difference between revisions of "User getCommunicationHistory"
Cg huyphong (talk | contribs) |
|||
Line 4: | Line 4: | ||
Get all communication history of user (which are aslo displayed in communication history tab). Such as: CATI, EMail... <br> | Get all communication history of user (which are aslo displayed in communication history tab). Such as: CATI, EMail... <br> | ||
− | '''Syntax <br>''' User_getCommunicationHistory(UserResourceId); <br><br>'''Arguments<br>''' UserResourceId: is a number. <br> <br>'''Return type'''<br> Array | + | '''Syntax <br>''' User_getCommunicationHistory(UserResourceId); <br><br>'''Arguments<br>''' UserResourceId: is a number. <br> <br>'''Return type'''<br> 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''' | ||
Line 10: | Line 104: | ||
array userCommunicate= User_getCommunicationHistory(25455);<br>print (userCommunicate);<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> | ||
[[Category:User_Functions]] | [[Category:User_Functions]] |
Revision as of 05:46, 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}}