Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Delete Context Records Action
This action is available in API version 67.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/v68.0/actions/standard/deleteContextRecords
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearertoken
Inputs
| Input | Details |
|---|---|
| contextId |
|
| dataPaths |
|
| isPermanentDelete |
|
Usage
Use this action to delete one or more records from a context instance. By default, records are soft deleted. To permanently delete the records, set isPermanentDelete to true.
Example
- POST
-
This sample request is for the Delete Context Records action.
1{ 2 "inputs": [ 3 { 4 "contextId": "0000000a07da091002517526756248297be68492e6b442e8ad80182d518e45aa", 5 "dataPaths": [ 6 { "dataPath": ["001xx000003GbMhAAK", "003xx000004Wia5AAC"] } 7 ], 8 "isPermanentDelete": false 9 } 10 ] 11} -
This sample response is for the Delete Context Records action.
1[ 2 { 3 "actionName": "deleteContextRecords", 4 "errors": null, 5 "isSuccess": true, 6 "outputValues": {} 7 } 8]