public function Salesforce::objectReadbyExternalId in Salesforce Suite 7.3
Return a full loaded Salesforce object from External ID.
Parameters
string $name: Object type name, E.g., Contact, Account.
string $field: Salesforce external id field name.
string $value: Value of external id.
Return value
object Object of the requested Salesforce object.
File
- includes/
salesforce.inc, line 707 - Objects, properties, and methods to communicate with the Salesforce REST API
Class
- Salesforce
- Ability to authorize and communicate with the Salesforce REST API.
Code
public function objectReadbyExternalId($name, $field, $value) {
return $this
->apiCall("sobjects/{$name}/{$field}/{$value}");
}