Newer Version Available
OrderStatusChangedEvent
Notifies subscribers of changes to the status of an order record. Use
this event to trigger flows and processes in your order workflow. This object is
available in API version 51.0 and later.
Supported Calls
describeSObjects()
Supported Subscribers
| Subscriber | Supported? |
|---|---|
| Apex Triggers | ![]() |
| Flows | ![]() |
| Processes | ![]() |
| Pub/Sub API | ![]() |
| Streaming API (CometD) | ![]() |
Subscription Channel
/event/OrderStatusChangedEvent
Event Delivery Allocation Enforced
Yes
Fields
| Field | Details |
|---|---|
| EventUuid |
|
| NewStatus |
|
| NewStatusCode |
|
| OldStatus |
|
| OldStatusCode |
|
| OrderId |
|
| RelatedOrderId |
|
| RelatedOrderType |
|
| ReplayId |
|
Usage
To use OrderStatusChangedEvent, Enable Order Events must be enabled in the Order Settings page.
When an order is created and activated in one transaction, OldStatus is Draft and NewStatus is Activated.
When an order's status is updated multiple times in one transaction, OldStatus is the status at the beginning of the transaction before any changes. NewStatus is the final status after all updates.
