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.
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/v59.0/actions/standard/persistContextData
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearertoken
Inputs
| Input | Details |
|---|---|
| contextId |
|
| contextMappingId |
|
| trackingId |
|
Outputs
| Output | Details |
|---|---|
| referenceId |
|
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}