---
sourceDocument: Australia Finance and Supply Chain
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/source-to-pay-operations

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Finance and Supply Chain

ft:clusterId :

    - stpop

bundleId :

    - stpop

workflow :

    - Employee


---

# SupplyOn subflows and actions

# SupplyOn subflows and actions {#ariaid-title1}

Release version: Australia  
Updated November 19, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of SupplyOn subflows and actions

This integration with SupplyOn is implemented using a combination of flows, subflows, and Integration Hub actions designed to manage outbound purchase orders and inbound confirmation data efficiently.
It supports sending purchase orders to SupplyOn, handling asynchronous callbacks, and pulling order confirmations into the ServiceNow environment.
Show full answer Show less  

## Key Components and Their Functions

* **Flows:**
  * **SupplyOn Outbound PO - Create/Update/Cancel:** Initiates when an outbound purchase order header is new; runs eligibility checks and triggers the send subflow.
  * **SupplyOn Outbound PO - Async Callback:** Hosts REST API endpoint to receive asynchronous status updates from SupplyOn and maps them to the callback subflow.
* **Subflows:**
  * **SupplyOn Outbound PO - Send:** Constructs and posts the purchase order JSON payload to SupplyOn, stamps correlation tokens, and waits asynchronously for the outcome.
  * **SupplyOn Async Callback - Handle Status:** Matches asynchronous notifications to outbound orders and updates their status accordingly.
  * **Get Order Confirmation from SupplyOn:** Scheduled process to pull line-level confirmations into inbound staging.
* **Actions:**
  * **Post SupplyOn Purchase Order:** Executes the REST POST to SupplyOn for purchase order submission.
  * **Get demand-response summaries:** Retrieves lists of orders with confirmations within a specified look-back window.
  * **Get demand-response detail:** Retrieves detailed confirmation data per order line.

## Outbound Send Process and Status Management

The outbound send subflow follows a precise sequence to ensure reliable order submission and status tracking:

* **Operation Resolution:** Determines whether to create or cancel an order. Updates are not supported because SupplyOn controls insert vs. update logic. Cancel operations occur if the source order or any line is canceled or pending cancellation.
* **Status Transition:** Moves orders to "In process" (status 20) before sending, preventing orders from being stuck at this stage without processing.
* **Payload Construction:** Maps purchase order data and attachments into the SupplyOn JSON format, applies routing information, and supports custom payload modifications via a scripted extension point.
* **Order Posting:** Posts the JSON payload to SupplyOn and processes the synchronous response, including transaction ID and status codes.
* **Synchronous Outcome Handling:** On failure (non-201 response), marks the order as failed (status 40) and records error details. On success (201), stamps the order with a transaction token and keeps status at 20 pending asynchronous confirmation.
* **Async Status Waiting:** Waits up to 24 hours for an asynchronous status update. If timeout occurs, marks as failed (status 40) but retains correlation tokens for potential late reconciliation. The asynchronous callback subflow sets status 30 (completed) or 40 (failed).

## Cost Allocation Synchronization

The integration synchronizes status changes to related cost-allocation records within ServiceNow to ensure buyer-side financial records accurately reflect the order lifecycle. This correlation is done via order line numbers since there is no direct foreign key relationship.

## Customization and Extension

A scripted extension point is available during the outbound send process for customers to adjust the payload as needed before posting to SupplyOn. Currently, no extension point is provided for the confirmation pull process.  
The flows, subflows, and actions that make up the integration, and the outbound send step sequence.
The integration is delivered as a set of flows, subflows, and Integration Hub actions.
{#supplyon-subflows-actions__table_tpg_5hk_rkc__entry__3}

| Type | Name | Purpose |
|-|-|-|
| Flow | SupplyOn Outbound PO - Create/Update/Cancel | Fires when an outbound header reaches New (10). Runs the eligibility gate and invokes the send subflow. |
| Subflow | SupplyOn Outbound PO - Send | Builds and posts the order to SupplyOn, stamps the correlation token, and waits for the async outcome. Runs as system. |
| Action | Post SupplyOn Purchase Order | Posts POST /purchaseorder through the supplyOnOrders alias. |
| Flow | SupplyOn Outbound PO - Async Callback | REST API asynchronous trigger. Hosts the receiver endpoint and maps the request body into the callback subflow. |
| Subflow | SupplyOn Async Callback - Handle Status | Correlates the notification to the outbound row and advances its status. Runs as system. |
| Subflow | Get Order Confirmation from SupplyOn | Scheduled pull of line-level confirmations into inbound staging. |
| Action | Get demand-response summaries | Lists orders with confirmations in the look-back window (GET /demandresponse-summaries). |
| Action | Get demand-response detail | Retrieves per-line confirmation detail for one order (GET /demandresponse). |
[Table 1. Integration components]

{#supplyon-subflows-actions__table_tpg_5hk_rkc}

## Outbound send: step sequence {#supplyon-subflows-actions__section_upg_5hk_rkc}

The send subflow moves the row through the following steps and status transitions.

1. Resolve the operation: The resolver returns create or cancel, never update, because SupplyOn owns insert-versus-update. Cancel is returned when the source purchase order header or any line is in a canceled or pending-cancellation state.
2. Move the header and lines to 20 (In process): This happens before the POST, so a row can't sit at 20 without the send having started.
3. Build the payload: The factory maps the staging header and lines into the SupplyOn JSON. It also maps the source purchase order for attachments, applies the routing triple, embeds header attachments, and runs the scripted extension point.
4. Invoke Post SupplyOn Purchase Order: The REST step posts the order and reads back the status code and the synchronous response (TransactionID, StatusCode, StatusText).
5. Handle the synchronous outcome: On a non-201, the header and lines move to 40 (Failed), the message is set to the error detail, and the flow ends without waiting. On a 201, the header message is stamped with the SON-TXN:\<TransactionID\> token and a note that the order was sent and is awaiting the async status. The status stays at 20.
6. Wait up to 24 hours for the status to change from 20: On timeout, the header and lines move to 40 and the correlation token is preserved so that a late callback can reconcile the row to 30. If the callback has already arrived, the async path has set 30 or 40 and the send subflow does not rewrite the status.

{#supplyon-subflows-actions__ol_vpg_5hk_rkc}  
Note:  
This subflow writes 20 and 40 (synchronous failure or timeout). It does not write 30. Setting status 30 is the async callback job.

Cost-allocation lockstep: At each transition, the integration mirrors the status onto any `sn_spend_intg_outbound_cost_allocation` rows for the order, so that buyer-side cost-allocation records don't remain open
after the order closes. Because the cost-allocation table has no foreign key to the outbound header, correlation is by the order line numbers. These rows are not sent to SupplyOn.

Custom extension point: The outbound send provides a scripted extension point for payload adjustment. The confirmation pull does not currently define one.

