Team Members API Parameters

TeamMemberDTO

The TeamMemberDTO contains the information needed to either add or remove a member from a team.

global with sharing class TeamMemberDTO {

/**
* Id of a user/queue to add to the team.
*/
global Id userOrQueueId;

/**
* (Optional) Weighting to assign to the new team member. If not provided, default weighting is set to 1.
*/
global Decimal weighting;

/**
* (Optional) Shift to assign. If not provided, team hours will be used.
*/
global String shiftName;

global TeamMemberDTO(Id userOrQueueId, Decimal weighting, String shiftName) {
this.userOrQueueId = userOrQueueId;
this.weighting = weighting;
this.shiftName = shiftName;
}

global TeamMemberDTO(Id userOrQueueId) {
this(userOrQueueId, null, null);
}

}

How did we do?

Team Members API

Contact