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

    Class AddEmailParticipant

    Adds a participant to an email task.

    The SID of the email task to add the participant to.

    The email address of the participant to add.

    The level of the participant to add, which should be either ParticipantLevel.To or ParticipantLevel.CC.

    Additional options for the participant, containing the 'name' field which is the friendly name for the participant to be added.

    A promise that resolves when the participant is successfully added.

    import { createClient } from "@twilio/flex-sdk";
    import { AddEmailParticipant, ParticipantLevel } from "@twilio/flex-sdk/actions/Conversation";

    async function addEmailParticipant() {
    const client = await createClient("SDK_TOKEN");
    const addEmailParticipant = new AddEmailParticipant("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "test.user@gmail.com", ParticipantLevel.To, { name: "Test User" });
    await client.execute(addEmailParticipant);
    }

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • ctx: {}

      Returns Promise<void>