You are here

public function RestClient::getDeleted in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::getDeleted()
  2. 5.0.x src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::getDeleted()

Retrieves objects deleted within the given timeframe.

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

array Response data.

Overrides RestClientInterface::getDeleted

File

src/Rest/RestClient.php, line 565

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce\Rest

Code

public function getDeleted($type, $startDate, $endDate) {
  return $this
    ->apiCall("sobjects/{$type}/deleted/?start={$startDate}&end={$endDate}");
}