You are here

function salesforce_api_get_id_with_sfid in Salesforce Suite 7

Same name and namespace in other branches
  1. 6.2 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.

2 calls to salesforce_api_get_id_with_sfid()
_sf_node_import_cck_nodereference in sf_entity/sf_entity.module
_sf_node_import_cck_userreference in sf_entity/sf_entity.module


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


function salesforce_api_get_id_with_sfid($sfid, $entity, $bundle, $key = 'sfid') {
  return db_select('salesforce_object_map', 's')
    ->fields('s', array(
    ->condition('sfid', $sfid)
    ->condition('drupal_entity', $entity)
    ->condition('drupal_bundle', $bundle)