(Created page with "<translate> = getTeamMembers = Get a list of all members of a specified team == Request == === Syntax === {| class="wikitable" |getTeamMembers(teamId: string): Promise<Oper...") |
|||
Line 103: | Line 103: | ||
+ | ===Explanation of States=== | ||
+ | Offline- The user is offline and not available to handle interactions. | ||
+ | |||
+ | Available- The user is ready to handle interactions. | ||
+ | |||
+ | DND- Do not disturb. A presence status indicating that the user does not wish to be contacted at the moment. | ||
+ | |||
+ | Away- The user is away and not available to handle interactions. | ||
+ | |||
+ | Busy- The user is unavailable to accept new interactions because they are already handling one or more interactions. | ||
+ | |||
+ | {{Note | Business users who do not take part in handling automatically distributed interactions cannot have the "busy" state.}} | ||
</translate> | </translate> |
Revision as of 16:06, 12 April 2023
<translate>
getTeamMembers
Get a list of all members of a specified team
Request
Syntax
getTeamMembers(teamId: string): Promise<OperationResult<TeamMember[]>> |
Where:
type TeamMember = {
id: string teamId: string firstName: string lastName: string phone: string state: TeamMemberState } type TeamMemberState = "offline" | "available" | "dnd" | "away" | "busy" |
Parameters
(None)
Example Request
getTeamMembersButton.onclick = () => {
const teamId = teamIdInput.value
adApi.getTeamMembers(teamId)
}
Return Value
Object | Object Values | Data Type | Optional?
(Y/N) |
Return Value Description |
TeamMember | ||||
id | String | N | The team member’s unique (user) ID | |
teamId | String | N | The team’s unique ID | |
firstName | String | N | The team member’s first name | |
lastName | String | N | The team member’s last name | |
phone | String | N | The team member’s assigned phone number (i.e., extension) | |
state | String | N | Returns the team member’s state as one of the following values:
|
Explanation of States
Offline- The user is offline and not available to handle interactions.
Available- The user is ready to handle interactions.
DND- Do not disturb. A presence status indicating that the user does not wish to be contacted at the moment.
Away- The user is away and not available to handle interactions.
Busy- The user is unavailable to accept new interactions because they are already handling one or more interactions.
![]() |
Business users who do not take part in handling automatically distributed interactions cannot have the "busy" state. |
</translate>