Entity External

Component ID

2924552

Component name

Entity External

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

33

Component created

Component changed

Component body

This module currently integrates with Salesforce to perform CRUD operations on Salesforce objects with Drupal core and Entity API entity functions, including entity_metadata_wrapper.

Examples:

Create a new Salesforce Contact:

$entity = entity_create('salesforce_contact', array());

$entity->FirstName = 'John';
$entity->LastName = 'Doe';
$entity->Email = 'jdoe@example.com';

entity_save('salesforce_contact', $entity);

Delete an existing Salesforce Contact:

entity_delete('salesforce_contact', 'sf-id-hash');

Update an existing Salesforce Contact:

$entity = entity_load_single('salesforce_contact', 'sf-id-hash');
$entity_wrapper = entity_metadata_wrapper('salesforce_contact', $entity);
$entity_wrapper->FirstName = 'Joe';
$entity_wrapper->save();

Dependencies