public function Salesforce::objectRead in Salesforce Suite 7.3
Return a full loaded Salesforce object.
Parameters
string $name: Object type name, E.g., Contact, Account.
string $id: Salesforce id of the object.
Return value
object Object of the requested Salesforce object.
File
- includes/
salesforce.inc, line 688 - 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 objectRead($name, $id) {
return $this
->apiCall("sobjects/{$name}/{$id}", array(), 'GET');
}