Difference between revisions of "Team new"
Nguyenduyan (talk | contribs) (→Example) |
Nguyenduyan (talk | contribs) (→Team_new) (Tag: visualeditor) |
||
Line 7: | Line 7: | ||
Resource Type may contain Team: Projects, Folders, Users, Groups, Reports, Monitor | Resource Type may contain Team: Projects, Folders, Users, Groups, Reports, Monitor | ||
+ | |||
+ | We need Team_save to save the new Team. | ||
== Syntax == | == Syntax == |
Revision as of 03:29, 22 June 2017
Team_new
Create a new Team on a resource (On GUI, Team is under Team tab of resource)
Resource Type may contain Team: Projects, Folders, Users, Groups, Reports, Monitor
We need Team_save to save the new Team.
Syntax
Team_new(resourceId, teamTypeId, groupResourceId);
Arguments
number resourceId: is ResourceId of resource that you want to create a Team into
number teamTypeId: is Id of Team Type that the Team belong to (on GUI, the Team Type at Administration/HR/Team types)
number groupResourceId: is ResourceId of group that belong to the Team
Return type
array of Team object
Example
number resourceId = 15562383;
number teamTypeId = 1;
number groupResourceId = 15567436;
array team = Team_new(resourceId, teamTypeId, groupResourceId);//{33,1,My Team,15567436,15562383,{}}
Team_save(team);