Collapse Submit a Service Request Contact Information for Technical SupportMy Service Notifications
CPMs and Event Subscriptions Not Sent or Sent with Duplicate Data
Answer ID 12386 | Last Review Date 09/08/2022
Why is each object update not reflected in my site's integration(s) implemented using CPMs or Event Subscriptions?
Event Subscriptions, Service Process Model (SPM), Process Designer, Custom Processes (CPM)
Oracle B2C Service
Triggered asynchronous CPMs and Event Subscription integration calls are run using the Service Process Model (SPM) queue for an Oracle B2C Service site. When each is run the API will reflect the state of objects as they exist in the database at that instant. This means that any object data sent to external integrations will reflect the state of that object in the database at the time the integration call is made rather than when the CPM or Event Subscription was triggered.
This condition is as the product was designed and can cause confusion when it is found that individual record updates are not always reflected in the external integrations. The same can also be perceived as duplicate data sent to integrations. Both of these conditions do exist when using these Oracle B2C Service product features and should be expected.
For further details on this see
Answer ID 11934: Alternatives to using CPM customizations for event-driven functionality that needs to happen immediately
A possible solution using CPMs would be to use a synchronous CPM to record the data of an object on each update in a custom object table, and then an asynchronous CPM to send the data stored in custom objects to the integration endpoint. The integration may not receive the data in the same order it was modified, but the modify date (for the object in question, through data stored in the custom object) can be sent to integrations to account for this.