Team roleExists

From Catglobe Wiki
Revision as of 07: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)
Jump to: navigation, search


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