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.
Context Service (POST)
Create new context records by submitting metadata and associated JSON data. After
validating the data, the system generates a new context ID. Context objects created using this
API apply only to a single request. They cannot be used to pass data across multiple
requests.
- Resource
-
1/connect/contexts - Example
-
1https://yourInstance.salesforce.com/services/data/v67.0/connect/contexts - Available version
- 59.0
- Requires Chatter
- No
- HTTP methods
- POST
- Request body for POST
-
- JSON example
-
1{ 2 "metadata": { 3 "contextDefinitionId": "11Oxx0000006VjNEAU", 4 "mappingId": "11jxx0000004Q83AAE" 5 }, 6 "data": "{\"Order\":[{\"id\":\"TestOrder123\",\"businessObjectType\":\"Order\",\"Name\":\"Test Order\",\"Status\":\"SHIPPED\",\"AccountName\":\"Kroger\",\"OrderItems\":[{\"id\":\"TestOrderItem1\",\"businessObjectType\":\"OrderItem\",\"ProductName\":\"Coke\"},{\"id\":\"TestOrderItem2\",\"businessObjectType\":\"OrderItem\",\"ProductName\":\"Pepsi\"}]}]}" 7} - Properties
-
Name Type Description Required or Optional Available Version data String Payload containing context-specific information. Required 59.0 metadata Context MetaData Input Metadata information about context. Required 59.0
- Response body for POST
- Context Info