Jump to content
Toggle menu
  • 915 articles
  • 3.8K files
  • 30.2K users
  • 279.2K edits
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


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