Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Execution Context



ExecutionContext Properties

executioncontext-properties page anchor
Resource properties
account_sidtype: SID<AC>Not PII

The SID of the Account(link takes you to an external page) that created the ExecutionContext resource.


contexttype: objectPII MTL: 30 days

The current state of the Flow's Execution. As a flow executes, we save its state in this context. We save data that your widgets can access as variables in configuration fields or in text areas as variable substitution.


flow_sidtype: SID<FW>Not PII

The SID of the Flow.


execution_sidtype: SID<FN>Not PII

The SID of the context's Execution resource.


urltype: string<URI>Not PII

The absolute URL of the resource.


Fetch a single execution context

fetch-a-single-execution-context page anchor
GET https://studio.twilio.com/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Context

Parameters

fetch-parameters page anchor
URI parameters
FlowSidtype: SID<FW>Not PII
Path Parameter

The SID of the Flow with the Execution context to fetch.


ExecutionSidtype: SID<FN>Not PII
Path Parameter

The SID of the Execution context to fetch.

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.executions('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.executionContext()
_12
.fetch()
_12
.then(execution_context => console.log(execution_context.context));

Output

_10
{
_10
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"context": {
_10
"foo": "bar"
_10
},
_10
"flow_sid": "FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"execution_sid": "FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"url": "https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Executions/FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Context"
_10
}


Rate this page: