Difference between revisions of "User getUsersByGroupResourceId"
Nguyenduyan (talk | contribs) (Created page with "{{HelpFiles}} ==== User_getUsersByGroupResourceId<br/> ==== Get users by group Resource Id '''Syntax''' User_getUsersByGroupResourceId (number groupRId) '''Arguments''' ...") |
Nguyenduyan (talk | contribs) |
||
Line 17: | Line 17: | ||
array of user array | array of user array | ||
− | '''Example''' | + | '''Example''' <source lang="javascript"> |
− | <source lang="javascript"> | ||
number groupRId=11303273; | number groupRId=11303273; | ||
array users = User_getUsersByGroupResourceId (groupRId); | array users = User_getUsersByGroupResourceId (groupRId); | ||
Line 27: | Line 26: | ||
userRId.Add(users[i][USER_RESOURCE_ID]); | userRId.Add(users[i][USER_RESOURCE_ID]); | ||
} | } | ||
− | userRId; | + | print(userRId);//result {3053527,15133581,15145657,15351925,15357656,15368246,11303274} |
</source> | </source> | ||
Latest revision as of 04:05, 28 November 2016
User_getUsersByGroupResourceId
Get users by group Resource Id
Syntax
User_getUsersByGroupResourceId (number groupRId)
Arguments
groupRId: is a numeric (non-decimal) expression. It is the ResourceId of group
Return type
array of user array
Example
number groupRId=11303273;
array users = User_getUsersByGroupResourceId (groupRId);
array userRId;
for (number i=0;i<users.Count; i++)
{
userRId.Add(users[i][USER_RESOURCE_ID]);
}
print(userRId);//result {3053527,15133581,15145657,15351925,15357656,15368246,11303274}
Availability
Version 6.0