SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
65 stars 46 forks source link

Fix issue with platform event failing due to "System.CalloutException" exception #212

Closed jbachelet closed 1 year ago

jbachelet commented 1 year ago

Fixing issues #163, #106, #115.

This PR is fixing the issue by placing "Pause" elements before firing the platform events and moving the platform event trigger after the flow commit. This ensures everything is committed before the platform event is raised and so the flow listener is executed.

Screenshot 2022-12-16 at 3 58 47 PM