Persist Context Data Action
This action is available in API version 59.0 and later.
Special Access Rules
Available in Developer, Enterprise, Professional, and Unlimited editions for Industries clouds where Context Service is enabled.
Supported REST HTTP Methods
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.
Inputs
| 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. |
Outputs
| 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. |
Usage
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.
Example
- POST
-
This sample request is for the Persist Context Data action.
1{ 2 "inputs": [ 3 { 4 "contextId": "0000000a07da09100251752497651022c35b6150a4d04cd6a84bf1a0439cc609", 5 "contextMappingId": "16Pxx0000004CCGEA2", 6 "trackingId": "16Pxx0000004CCGEA2" 7 } 8 ] 9} -
This sample response is for the Persist Context Data action.
1{ 2 "actionName": "persistContextData", 3 "errors": null, 4 "invocationId": null, 5 "isSuccess": true, 6 "outputValues": { 7 "referenceId": "16Pxx0000004CAeEAM" 8 }, 9 "sortOrder": -1, 10 "version": 1 11}