Retrieves all participants attached to a task.
The unique identifier (SID) of the task.
A promise that resolves to an array of Participant objects.
Participant
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { GetTaskParticipants } from "@twilio/flex-sdk/actions/Task";async function getTaskParticipants() { const client = await createClient("SDK_TOKEN"); const getTaskParticipants = new GetTaskParticipants("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); const participants = await client.execute(getTaskParticipants); return participants;} Copy
import { createClient } from "@twilio/flex-sdk";import { GetTaskParticipants } from "@twilio/flex-sdk/actions/Task";async function getTaskParticipants() { const client = await createClient("SDK_TOKEN"); const getTaskParticipants = new GetTaskParticipants("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); const participants = await client.execute(getTaskParticipants); return participants;}
Retrieves all participants attached to a task.
Param: taskSid
The unique identifier (SID) of the task.
Returns
A promise that resolves to an array of
Participantobjects.Throws
FlexSdkError with the following error code(s):
Example