public function Salesforce::objectCreate in Salesforce Suite 7.3
Create a new object of the given type.
Parameters
string $name: Object type name, E.g., Contact, Account, etc.
array $params: Values of the fields to set for the object.
Return value
array "id" : "001D000000IqhSLIAZ", "errors" : [ ], "success" : true
File
- includes/
salesforce.inc, line 615 - 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 objectCreate($name, $params) {
return $this
->apiCall("sobjects/{$name}", $params, 'POST');
}