Team roleExists: Difference between revisions
From Catglobe Wiki
More actions
| Nguyenduyan (talk | contribs)  Created page with "Category:Team_Functions {{HelpFiles}}   = Team_roleExists =  Check whether the Role existed on the Team (On GUI, Team is under Team tab of resource)  == Syntax ==  Team_ro..." | 
| (No difference) | 
Latest revision as of 05:06, 22 June 2017
 
Team_roleExists
Check whether the Role existed on the Team (On GUI, Team is under Team tab of resource)
Syntax
Team_roleExists(team, roleId);
Arguments
team: Team Object. See Team_new, Team_getTeamByResourceId
roleId: number, Id of role (on GUI, you can find role at Administation/HR/Roles)
Return type
Boolean
Example
number projectRId = 15562383;
number teamTypeId = 1;
number groupRId = 15567436;
array team = Team_getTeamByResourceId (projectRId, teamTypeId, groupRId);
number roleId = 2;
Team_roleExists(team, roleId);//True if existed; False if not
