Posts

Showing posts from April, 2021

LinkedIn

OrderStatusChangedEvent - Salesforce Standard Platform Event fired during Order Status Changes

Image
 A sales process is normally completed by placing an order and contracting the products. In most cases, the actual ordering will be happening in an external system and not in salesforce. So in this case it is important to send order-related changes to the external system as soon as its status is updated in salesforce. Salesforce has introduced a new standard platform event to support this-  called  OrderStatusChangedEvent. This is available as part of API version 51.0 and above. Let us see this in detail: How to enable OrderStatusChangedEvent  Under Order Setting, we can enable this standard platform event: Setup->Feature Settings->Sales->Order Setting->Enable Order Events When this will be fired? This standard platform event will be fired when: 1. Status is updated for an existing order Supported Subscribers OrderStatusChangedEvent can be subscribed internally and externally. Subscribing through Flows Let us see an example of how to subscribe to standard OrderStatusChanged