Hooks provided by Salesforce API in Salesforce Suite 7.3
File
- ./
salesforce.api.php, line 11 - These are the hooks that are invoked by the Salesforce core.
Functions
Name | Location | Description |
---|---|---|
hook_salesforce_mapping_entity_uris_alter |
./ |
Provide URIs manually for poorly-behaved entity types. |
hook_salesforce_mapping_fieldmap_type |
./ |
Trigger action when first building the list of fieldmap types. |
hook_salesforce_mapping_fieldmap_type_alter |
./ |
Alter existing fieldmap types. |
hook_salesforce_pull_allow_sf_object |
./ |
Prevent a pull from updating/creating an entity. |
hook_salesforce_pull_entity_insert |
./ |
Act on an entity after it is inserted by a salesforce pull operation. Implementations may throw SalesforcePullException to prevent updating of the Salesforce Mapping Object, but the entity will already have been saved. |
hook_salesforce_pull_entity_merge_fields_alter |
./ |
Change Salesforce merge object name / field names before sync. |
hook_salesforce_pull_entity_presave |
./ |
Act on an entity just before it is saved by a salesforce pull operation. Implementations should throw a SalesforcePullException to prevent the pull. |
hook_salesforce_pull_entity_update |
./ |
Act on an entity after it is updated by a salesforce pull operation. Implementations may throw SalesforcePullException to prevent updating of the Salesforce Mapping Object, but the entity will already have been saved. |
hook_salesforce_pull_entity_value_alter |
./ |
Alter the value being mapped to an entity property from a Salesforce object. |
hook_salesforce_pull_mapping_object_alter |
./ |
Define or alter the mapping object during a pull. |
hook_salesforce_push_entity_allowed |
./ |
Prevent push to SF for an entity for a given mapping. For example: mapping a single Drupal object to multiple separate Salesforce objects, but only syncing under certain conditions. |
hook_salesforce_push_fail |
./ |
A salesforce push has failed: Implementations may wish to react, for example, by logging the failure or alerting an administrator. |
hook_salesforce_push_mapping_object_alter |
./ |
Define or alter the mapping object during a push. |
hook_salesforce_push_params_alter |
./ |
Alter parameters mapped to a Salesforce object before syncing to Salesforce. |
hook_salesforce_push_success |
./ |
A salesforce push has succeeded: Implementations may wish to react, for example, by alerting an administrator. |
hook_salesforce_query_alter |
./ |
Alter a SOQL select query before it is executed. For example, filter target SObjects by a date value, or add an additional field to the query. |