User getCommunicationHistory

From Catglobe Wiki
Jump to: navigation, search

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