You are here

public function Salesforce::objectUpdate in Salesforce Suite 7.3

Update an existing object.

Parameters

string $name: Object type name, E.g., Contact, Account.

string $id: Salesforce id of the object.

array $params: Values of the fields to set for the object.

File

includes/salesforce.inc, line 671
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 objectUpdate($name, $id, $params) {
  $this
    ->apiCall("sobjects/{$name}/{$id}", $params, 'PATCH');
}