Query Context Records and Children (POST)

Query context records and their child records by data path.

Use this resource to return the records at one or more data paths, including child records. Each data path is an ordered list of record IDs. The response includes attribute values and the current state of each matching record.

Resource 

1/connect/contexts/query-records

Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/contexts/query-records

{yourInstance} is the domain name of your Salesforce instance.

Available Version 

60.0

Requires Chatter 

No

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2  "contextId": "7bc695bc-f38b-4a94-8a95-0caa50f3da53",
3  "mappingId": "11jxx0000004Q83AAE",
4  "queryPaths": [
5    {
6      "dataPath": [
7        "001xx000003GaX6AAK"
8      ]
9    }
10  ]
11}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
contextIdStringID of the context to query.Required60.0
mappingIdStringID of the context mapping used to resolve the queried records.Optional60.0
queryPathsContext Data Path Input[]List of data paths for the records to query. Each path identifies one record.Required60.0

Response Body for POST 

Query Records Result