Difference between revisions of "Quarantine getUserHistory"
(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)....") |
|||
Line 1: | Line 1: | ||
+ | [[Category:Quarantine_Functions]] | ||
{{HelpFiles}} | {{HelpFiles}} | ||
Latest revision as of 11:40, 20 May 2016
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
==============================