Difference between revisions of "User getCommunicationHistory"

From Catglobe Wiki
Jump to: navigation, search
Line 4: Line 4:
 
&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>  
 
&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(UserResourceId); <br><br>'''Arguments<br>'''&nbsp; UserResourceId: 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'''  
Line 10: Line 104:
 
array userCommunicate= User_getCommunicationHistory(25455);<br>print (userCommunicate);<br>  
 
array userCommunicate= User_getCommunicationHistory(25455);<br>print (userCommunicate);<br>  
  
//{{26161,{2011,8,23,9,45,0,0,34},1,Administrator,1,Administrator,37245142,ApplicationContactGroup_DeletedItems,Man_usertest_02,User,Hi&nbsp; - Invitation for Qnaire Man_Test_02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,Informer}, 14599775,{2011,7,19,10,43,5,800,29},1,Administrator,9608998,JetteLorenzen,37041790,CATINET\Projekt\Temopary test folder Martin\Loc_Test_CATI_questionnaire,Loc_Test_CATI_questionnaire,ProjectQuestionnaire,Jul-19, 10:43 : Busy,CATI}}<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}}