Retrieves the memory profile associated with a specified task.
The SID of the task to retrieve the memory profile for.
A promise that resolves to the task's MemoryProfile.
MemoryProfile
FlexSdkError with the following error code(s):
import { createClient } from "@twilio/flex-sdk";import { GetMemoryProfile } from "@twilio/flex-sdk/actions/Memory";async function getMemoryProfile() { const client = await createClient("SDK_TOKEN"); const getMemoryProfile = new GetMemoryProfile("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); const profile = await client.execute(getMemoryProfile); return profile;} Copy
import { createClient } from "@twilio/flex-sdk";import { GetMemoryProfile } from "@twilio/flex-sdk/actions/Memory";async function getMemoryProfile() { const client = await createClient("SDK_TOKEN"); const getMemoryProfile = new GetMemoryProfile("WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); const profile = await client.execute(getMemoryProfile); return profile;}
Retrieves the memory profile associated with a specified task.
Param: taskSid
The SID of the task to retrieve the memory profile for.
Returns
A promise that resolves to the task's
MemoryProfile.Throws
FlexSdkError with the following error code(s):
Example