Team roleExists

From Catglobe Wiki
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