You are here

function salesforce_api_get_id_with_sfid in Salesforce Suite 6.2

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

Get an object id using the salesforce id


$sfid: A saleforce id

$type: The type of the Drupal object you are requesting data for; node or user.

Return value

The associated unique ID used to identify the object in Drupal or FALSE.

3 calls to salesforce_api_get_id_with_sfid()
_sf_import_process_records in sf_import/sf_import.module
Processes items in the sf_import_queue table.
_sf_node_import_cck_nodereference in sf_contrib/sf_contrib.module
_sf_node_import_cck_userreference in sf_contrib/sf_contrib.module


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


function salesforce_api_get_id_with_sfid($sfid, $type = 'node') {
  $result = db_query("SELECT oid FROM {salesforce_object_map} WHERE sfid = '%s' AND drupal_type = '%s'", $sfid, $type);
  return db_result($result);