public function Salesforce::getDeleted in Salesforce Suite 7.3
Same name and namespace in other branches
- 5.2 includes/salesforce.php \salesforce::getDeleted()
- 5 includes/salesforce.php \salesforce::getDeleted()
Retrieves the list of individual objects that have been deleted within the given timespan for a specified object type.
Parameters
string $type: Object type name, E.g., Contact, Account.
string $startDate: Start date to check for deleted objects (in ISO 8601 format).
string $endDate: End date to check for deleted objects (in ISO 8601 format).
Return value
GetDeletedResult
File
- includes/
salesforce.inc, line 737 - 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 getDeleted($type, $startDate, $endDate) {
return $this
->apiCall("sobjects/{$type}/deleted/?start={$startDate}&end={$endDate}");
}