You are here

function salesforce_api_describeGlobal in Salesforce Suite 7.2

Same name and namespace in other branches
  1. 6.2 salesforce_api/salesforce_api.module \salesforce_api_describeGlobal()
  2. 7 salesforce_api/salesforce_api.module \salesforce_api_describeGlobal()

Wrapper for SOAP SforceBaseClient::describeGlobal

Return value

an SFQueryResult object (look at ->types for an array of SF object types)

3 calls to salesforce_api_describeGlobal()
drush_salesforce_api_soql_show_tables in salesforce_api/
Duplicates the functionality of mysql's SHOW TABLES
salesforce_api_admin_object in salesforce_api/
Ask Salesforce for a list of objects and display a checklist for the user. Based on user selection, set up or tear down cached/synched Salesforce data. @todo make this more user-friendly. At the moment it's possible for an admin user to blow…
salesforce_api_demo in salesforce_api/
Demonstrates some of the API functionality through the Salesforce class and fieldmap functionality.


salesforce_api/salesforce_api.module, line 1852
Defines an API that enables modules to interact with the Salesforce server.


function salesforce_api_describeGlobal() {
  static $response;
  if (!empty($response)) {
    return $response;
  $sf = salesforce_api_connect();
  if ($sf === FALSE) {
    $link = l('Please verify that you have completed your Salesforce credentials', SALESFORCE_PATH_ADMIN);
    if (user_access('administer salesforce')) {
      drupal_set_message(t('Unable to connect to Salesforce. !link', array(
        '!link' => $link,
      )), 'error');
  $response = $sf->client
  if (isset($response->sobjects)) {
    $response->types = $response->sobjects;
  return $response;