Quarantine getUserHistory

From Catglobe Wiki
Revision as of 11:20, 20 May 2016 by Tranvuthaibinh (talk | contribs) (Created page with "{{HelpFiles}} === Quarantine_getUserHistory === Return an array containing all quarantines were in specified user's quarantine history (State All of quarantine history tab)....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Quarantine_getUserHistory

Return an array containing all quarantines were in specified user's quarantine history (State All of quarantine history tab).

An array which contains UserQuarantine objects. for infomation click here;

Syntax

Quarantine_getUserHistory(userRId);

Arguments

userRId: Is a number expression. It is the user's resource id.

Return type

Array

Examples

number userRId= 15498958;
array quarantineList = Quarantine_getUserHistory(userRId);
 for(number j=0;j< quarantineList.Count;j++) 
 {
 print(quarantineList [j].AddedByUserId);
 print(quarantineList [j].Comment);
 print(quarantineList [j].From);
 print(quarantineList [j].ObjectTypeName);
 print(quarantineList [j].OriginalTo);
 print(quarantineList [j].QuarantineResourceId);
 print(quarantineList [j].RemovedByUserId);
 print(quarantineList [j].To);
 print("==============================");
 }
//Result
1
quarantine for test
2016-05-20 04:49:57
UserQuarantine
2016-05-21 04:49:57
41
0
2016-05-21 04:49:57
==============================
1
After send Sendmailtest
2016-05-19 11:42:33
UserQuarantine
2016-05-20 11:42:33
41
0
2016-05-20 11:42:33
==============================