1

I can't find an example of executing SOQL using the Composite Graph API. My request body

{ "graphs": [ { "graphId": "graph1", "compositeRequest": [ { "url": "/services/data/v51.0/query/?q=SELECT+Id+FROM+RecordType+WHERE+SobjectType+=+'Account'+AND+DeveloperName+=+'PersonAccount'+LIMIT+1", "method": "GET", "referenceId": "personAccountRecordType" } ] } ] } 

Response

{ "graphs": [ { "graphId": "graph1", "graphResponse": { "compositeResponse": [ { "body": [ { "errorCode": "OPERATION_NOT_ALLOWED", "message": "Endpoint not supported in Composite Graph API: /v53.0/query/?q=SELECT+Id+FROM+RecordType+WHERE+SobjectType+='Account'+AND+DeveloperName+=+'PersonAccount'+LIMIT+1" } ], "httpHeaders": {}, "httpStatusCode": 404, "referenceId": "personAccountRecordType" } ] }, "isSuccessful": false } ] } 

1 Answer 1

1

Composite Graph API only supports few types of API. The query API is not supported.

enter image description here

The docs are here.

For the other different types, I recommend a move to regular REST API.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.