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.
Get Field Values from an External Object Record by Using the Salesforce ID
You use the sObject Rows resource to retrieve field values from a record. Specify the fields
you want to retrieve in the fields parameter and
use the GET method of the resource.
In the following example, the Country__c custom field is retrieved from an external object that’s associated with a non-high-data-volume external data source.
Example for retrieving values from fields on the Customer external object
1curl https://MyDomainName.my.salesforce.com/services/data/v67.0/sobjects/Customer__x/x01D0000000002RIAQ?fields=Country__c -H "Authorization: Bearer token"Example request body
None required
Example response body
1{
2 "attributes" : {
3 "type" : "Customer__x",
4 "url" : "/services/data/v67.0/sobjects/Customer__x/x01D0000000002RIAQ"
5 },
6 "Country__c" : "Argentina",
7 "Id" : "x01D0000000002RIAQ"
8}