Creating Order/OrderItem via CompositeAPI can Result in Multiple Journey Injections
Last updated 2022-05-29 ·Reference W-10893200 ·Reported By 5 users
When an order is created with child order items using the Sales Cloud Composite API, the process that injects contacts into a Salesforce Data Event can be called multiple times. This can result in duplicate injections into the Journey.
1.) Create Journey using Salesforce Data Event
2.) Configure Salesforce Data Event for “Order”
3.) Select “Create” only
4.) Select any contact to inject
5.) Finish configuring Journey using only a random split
6.) Configure Journey Re-entry Setting to be “Re-entry anytime”
7.) Activate Journey
8.) Make an API call using the Sales Cloud Composite API so that one order is created and multiple order items are also created for that order
NOTE: Set "allOrNone": true in order to reproduce the issue. If allOrNone is set to false, the issue is not reproduced.
Set "allOrNone": false
Set Re-Entry mode to "Re-entry only after exiting"
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.