A new feature in Revenue Cloud is the ability to split one Quote into several Orders by Quote Line Group, by a specified field on the Quote Line Item, by Quote Line Recipients or the locations of a quote, or by Quote Recipient Groups or groups of locations on a quote. Of course, you always still have the option to convert the whole quote to a single order as usual. This allows you to create Order at the level of granularly that's easiest to track and contains all the logically related products and services to streamline fulfillment.

The downside is that each Order creation runs asynchronously and completes on its own schedule. In Communications Cloud and in the telco world, we often want to split by Recipient or location so that we have a separate order for each location in a multi-site quote so they can be fulfilled and assetized independently. This gets a bit tricky when we want to add business logic when the conversion to orders is completed, such as status updates on the Quote or Opportunity or locking the Quote once the conversion is finished to prevent the Quote and Orders from going out of sync.

A common business requirement is to:

  • Lock the Quote once the final Order is generated, so nobody can change change the Quote, making it go out of sync with the already generated Orders.

  • When the final Order is created, notify the Quote owner in-app and by email that all Orders created related to this one Quote are complete.

So let's dive into how to tell when all Orders are generated, and how a Platform Event–Triggered Flow ties it all together.

How the event and the split actions work

The createOrdersFromQuote (API v65.0+) replaces the deprecated single-order action and exists specifically to split one Quote into multiple Orders. It supports several ways to split:

Quote Creation Methods

orderCreationMethod Value

Result

CreateSingleOrder

One Order from the Quote (legacy, synchronous behavior)

CreateOrderByGroup

One Order per quote line group

CreateOrderByField

One Order per value of a quote line item field, for example Product2Id

SplitOrderByRecipients

One Order per Quote Line Recipient or location

SplitOrderByGroupOfRecipients

One Order per Quote Recipient Group or group of locations

Order headers are created synchronously. Order line items are created asynchronously; QuoteToOrderCompletedEvent fires once per Order as each order is created, not once per Quote once all orders are created. This results in a single Quote producing multiple QuoteToOrderCompletedEvent messages.

QuoteToOrderCompletedEvent is available from API v56.0, requires Revenue Cloud, and publishes on /event/QuoteToOrderCompletedEvent. Each message tells you which shape it is in through one boolean:

HasErrors

OrderId / OrderNumber

QuoteToOrderErrorDetailEvents

false

Populated

Empty

true

Null

One entry per error, each with ErrorCode and ErrorMessage

RequestIdentifier correlates every message back to the original conversion call. Error detail events also carry PrimaryRecordId (an Asset, Invoice or Order) and RelatedRecordId (an InvoiceLine or OrderItem), which suggests this error structure is shared across Revenue Cloud processes.

How to subscribe

There are four ways to subscribe to these events. Apex and Flow are for use from within Salesforce; Pub/Sub API and CometD serve external systems as external subscribers.

Subscriber

Best for

Note

Apex trigger

Complex in-org logic

After insert only; full control over correlation by RequestIdentifier

Flow / Process

Low-code in-org logic

Fast to prototype; aggregating several conversions needs an extra control record

Pub/Sub API

External middleware or ERP

Also usable from a custom LWC, as shown in the demo

Streaming API (CometD)

External integrations

Legacy streaming client option

Tracking completion

The QuoteToOrderCompletedEvent event fires for each Order, but does not tell you whether the Quote is fully conerted - you will need to monitor AsyncOperationTracker.

The AsyncOperationTracker is a standard Salesforce platform object introduced to track, monitor, and audit long-running asynchronous processes. It replaced earlier domain-specific tracking objects like RevenueAsyncOperation. It serves as a central status log for complex back-end operations initiated by standard APIs within Revenue Cloud, Salesforce Billing, and B2B/B2C Commerce.

Core Purpose & Capabilities

When a REST API call or internal platform action triggers a multi-step background job (such as generating an invoice, assetizing an order, or running pricing rules), Salesforce returns an asynchronous operation identifier. An AsyncOperationTracker record is automatically created to manage that lifecycle. It's purpose is:

  • Execution Lifecycle Tracking: Monitors jobs from submission to completion, tracking state transitions and processing timestamps.

  • Step-by-Step Chaining: Enables multi-stage jobs using sequence numbers and parent-child operation linkages.

  • Payload & Status Persistence: Captures input request payloads and intermediate responses between steps.

  • Batch Monitoring: Tracks the progress of itemized batch jobs (e.g., successful vs. failed items). 

Key Object Fields

Field

Type

Description

Status

Picklist

Current state of the operation: Submitted, InProgress, Completed, CompletedWithFailures, or Failure.

JobType

Picklist

Defines the background operation being executed (e.g., PlaceOrder, InvoiceDraftToPosted, CreateCPQContractsJob, PearAmendQtyAssets, PSTPrice).

ReferenceEntityId

Polymorphic Ref

The ID of the primary record being acted upon (e.g., Quote, Order, CreditMemo, Product2).

ParentOperationId

Reference

Lookup to another AsyncOperationTracker record for nested or chained step-wise operations.

SequenceNumber

Integer

The execution order position for multi-step async workflows.

Request / Response

Textarea

JSON/XML request payload and output response payload for each step.

SuccessfulJobItems / FailedJobItems

Integer

Counts of successful vs. failed records within the asynchronous execution.

SubmittedAt / StartedAt / FinishedAt

DateTime

Detailed timestamps measuring operation latency and duration.

ExpiresAt

DateTime

Timestamp indicating when Salesforce will clean up/purge the log record.

When you call createOrdersFromQuote, Salesforce creates a parent tracker referencing the Quote, plus one child tracker per Order group, all with status Submitted. As each group's line items finish, its child tracker moves to Completed (or a RevenueTransactionErrorLog is written on failure) and an event fires. Only after every child finishes does the parent tracker move to Completed.

Example end-to-end solution

Create Orders From Quote Lifecycle

The solution is a single Platform Event–Triggered Flow on the QuoteToOrderCompletedEvent, named "Lock Quote On Order Completion". It runs once per Order and acts only when the parent tracker indicates the entire Quote is complete. Logic:

  1. Trigger: the Flow starts on each QuoteToOrderCompletedEvent message.

  2. Get Child Tracker: look up the child AsyncOperationTracker linked to this Order. If none is found, the Flow ends.

  3. Create Logging Custom Object Record: write a row to the custom QuoteToOrderInspect__c object, capturing the sequence number, Order, Order status, Quote, and Quote status. This is for visibility while testing and not needed except for debugging. If used in a real life product use case for logging, use a Big Object instead.

  4. Parent Completed? Check the parent tracker for the Quote. If it is not Completed, other Orders are still running, so the Flow ends here.

  5. Lock Quote: once the parent is complete, an Apex action locks the Quote.

  6. Quote Locked Now? Confirm this run actually performed the lock. If not, end. This may happen in race conditions where two events are fired at the almost exactly the same time.

  7. Notify: get the Quote and the notification type, add the Quote owner as recipient, send an in-app notification and a completion email.

Let's see it in action

In this video, we will see a Quote with four Quote Line Recipients or locations, each with its own products. Four Orders will be created and once the last Order generates, the Quote owner gets an in-app notification and an email confirming the Quote was converted.

Wrapping up

QuoteToOrderCompletedEvent gives you a clean, per-Order signal, and AsyncOperationTracker turns those signals into a reliable per-Quote answer. Combine them in a Platform Event–Triggered Flow, guard the lock against parallel runs, and you can safely lock Quotes and notify owners the moment a multi-Order conversion finishes.

Grab the slides: Download here

Get the code: the full project (Flow, Apex, custom object, fields, permission sets, and post-deployment steps) is available on our Stratus Carta public GitHub repository. Use at your own risk - no warranty or support provided, and do not deploy to production!


About the author

Lindemberg Venancio is a Senior Salesforce Industries & Revenue Cloud Developer at Stratus Carta, based in Rio de Janeiro, Brazil. He brings more than 25 years of telecommunications experience, much of it in satellite, and has spent over five years working in Salesforce Industries. He is a certified OmniStudio Developer, OmniStudio Consultant, and Revenue Cloud Consultant, and has been creating Salesforce Industries content for the community for four years.

About Stratus Carta

Stratus Carta's team includes former Vlocity and Salesforce architects and developers, working in close collaboration with Salesforce product teams. If you'd like a dedicated session on building it, let us know in the comments, and follow Stratus Carta on LinkedIn and YouTube for the next deep dive.

Planning a Revenue Cloud or Salesforce Industries implementation? Reach out to us on LinkedIn to get it right the first time.