You are here

public function RestClient::queryAll in Salesforce Suite 5.0.x

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

Same as ::query(), but also returns deleted or archived records.

Parameters

\Drupal\salesforce\SelectQueryInterface $query: The constructed SOQL query.

Return value

\Drupal\salesforce\SelectQueryResult The query result.

Overrides RestClientInterface::queryAll

File

src/Rest/RestClient.php, line 463

Class

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

Namespace

Drupal\salesforce\Rest

Code

public function queryAll(SelectQueryInterface $query) {
  return new SelectQueryResult($this
    ->apiCall('queryAll?q=' . (string) $query));
}