• Development

    Conditionally Triggering Salesforce Push Operations in Drupal 8

    The user interface for the Salesforce Suite in Drupal 8 is fantastic. The suite itself is incredibly powerful. Among the many options, for each mapping you create you can specify what operations should trigger a synchronization. Here’s an example:

    We recently faced an issue with the “Drupal entity update” trigger being called too often. The salesforce_push module implements hook_entity_update()¬†, which gets called a lot. After looking at how the functions are called in salesforce_push.module I realized there were two choices:

  • Development

    Send email after Migrate Import in Drupal 8

    Here’s an example of a barebones event subscriber¬†to send an email when a Drupal migration finishes importing. The success vs failure logic isn’t working correctly, but you’ll get the gist. If you come up with a solution for this please contact me; I don’t have time to work on it at the moment.

    The file structure looks like this:

    mymodule.services.yml