Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Team roleExists

From Catglobe Wiki
Revision as of 05:06, 22 June 2017 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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