I'm using the Salesforce Suite module.
What I'm trying to accomplish:
When a record is created in Salesforce, that record is pulled into Drupal and the new node content ID is pushed back to the Salesforce record (for reference in Salesforce).
I have a mapping set up as such:
- Drupal create (push)
- Drupal update (push)
- Salesforce create (pull)
- Salesforce update (pull)
- Title - Salesforce to Drupal
- Content ID - Drupal to Salesforce
With this setup, it pulls the record into Drupal but the Content ID doesn't get pushed back to Salesforce. It will, however push when I update (just save) the node but we don't expect these nodes to be saved anytime soon after it's pulled in.
I've tried a few different ways leveraging the events dispatched by the Salesforce module but it always leads me to a race condition or a circle.