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
curl https://MyDomainName.my.salesforce.com/services/data/v68.0/sobjects/Customer__x/x01D0000000002RIAQ?fields=Country__c -H "Authorization: Bearer token"
Example request body
None required
Example response body
{
"attributes" : {
"type" : "Customer__x",
"url" : "/services/data/v68.0/sobjects/Customer__x/x01D0000000002RIAQ"
},
"Country__c" : "Argentina",
"Id" : "x01D0000000002RIAQ"
}