Difference between revisions of "Team removeTeamMember"
Nguyenduyan (talk | contribs) (Created page with "Category:Team_Functions {{HelpFiles}} = Team_removeTeamMember = Remove a member out of a team (On GUI, Team is under Team tab of resource) Need Team_save to save the c...") |
Nguyenduyan (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
== Arguments == | == Arguments == | ||
− | team: Team object. See Team_new, Team_getTeamByResourceId | + | team: Team object. See [[Team_new]], [[Team_getTeamByResourceId]] |
number roleId: Id of Role (on GUI, you can find role at Administration/HR/Roles) | number roleId: Id of Role (on GUI, you can find role at Administration/HR/Roles) | ||
Line 35: | Line 35: | ||
</source> | </source> | ||
+ | The Team before remove member | ||
+ | [[File:Team4.png]] | ||
+ | |||
+ | |||
+ | The Team after remove member | ||
+ | [[File:Team3.png]] |
Latest revision as of 05:50, 22 June 2017
Team_removeTeamMember
Remove a member out of a team (On GUI, Team is under Team tab of resource)
Need Team_save to save the change
Syntax
Team_removeTeamMember(team, roleId, teamMemberRId);
Arguments
team: Team object. See Team_new, Team_getTeamByResourceId
number roleId: Id of Role (on GUI, you can find role at Administration/HR/Roles)
number teamMemberRId: UserRId
Return type
empty
Example
number projectRId = 15562383;
number teamTypeId = 1;
number groupRId = 15567436;
array team = Team_getTeamByResourceId (projectRId, teamTypeId, groupRId);
number roleId = 2;
number teamMemberRId = 15567438;
array teamMember = Team_removeTeamMember(team, roleId, teamMemberRId);
Team_save(team);