Persist Context Data Action
Store cached context data associated with a context mapping ID in a Salesforce record.
This action is available in API version 59.0 and later.
Available in Developer, Enterprise, Professional, and Unlimited editions for Industries clouds where Context Service is enabled.
URI: /services/data/vXX.X/actions/standard/persistContextData
Where XX.X is the latest API version.
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a variable.
| Input | Type | Description |
|---|---|---|
contextId | string | Required. The ID of the context data record with cached data that’s to be stored in the database. |
contextMappingId | string | Optional. The Context Mapping record ID or Name that’s used to transform cached context data into the associated fields of the related Salesforce record. |
trackingId | string | Optional. The ID of a Context Mapping record that’s used to transform cached context data into the associated fields of the related Salesforce record. |
| Output | Type | Description |
|---|---|---|
referenceId | string | The ID of a response event that’s used to track the request processing status and to get the full request response. |
Persist Context Data invocable action is a wrapper over Persist Context data Connect API. It provides the ability to store the context data present in cache to database. Any update in context data can be persisted in database, if required.
- POST
This sample request is for the Persist Context Data action.
This sample response is for the Persist Context Data action.