@twilio/flex-sdk
    Preparing search index...

    Class GetChannelsForTask

    Retrieves channels for a specified task, providing interaction and channel SIDs.

    The SID of the task to retrieve channels for.

    A promise that resolves with an array of channel objects containing interaction and channel SIDs.

    import { createClient } from "@twilio/flex-sdk";
    import { GetChannelsForTask } from "@twilio/flex-sdk/actions/Task";

    async function getChannelsForTask() {
    const client = await createClient("SDK_TOKEN");
    const action = new GetChannelsForTask("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    const channels = await client.execute(action);
    console.log(channels[0].interactionSid, channels[0].sid);
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods