Flow Automation: Triggering Workflows When an Order Is Canceled
You can use the Order is canceled trigger in Flow Automation to start a workflow as soon as an order is canceled. For example, when an order is canceled in the admin, the system updates its status to Canceled. This automates routine tasks such as sending notifications, updating order or customer tags, and recording metrics, so your team does not need to handle them manually.
This guide explains when to use the trigger, how to test it end to end, and provides a practical example for automating communications and updates.
Supported Actions
The following actions are supported when using the Order is canceled trigger. Click on any action name to view its setup instructions:
- [Order] Update Order Tag
- [Customer] Update Customer Tag
- [Customer] Update Customer Note
- [General] Send Email Notification
- [General] Update Counter
Testing the Workflow
To test a workflow triggered when an order is canceled, follow these steps:
- From your SHOPLINE admin panel, go to Orders > Draft orders and click Create order to manually add a test draft order.
- In the order details page, click the Actions button at the top and select Cancel order.
- After clicking Cancel order, a dialog appears with advanced options for refunds, inventory, notifications, and order notes. Complete the required fields, then click Cancel order again to confirm. For details on how to cancel orders, please refer to the "Canceling Orders" section of this Help Center guide.
- Verify that the trigger works as configured in the Flow Automation app. For details on how to view flow execution results, please refer to the "How to View the Running of a Flow" section of this Help Center guide.
Example Use Case
Here is a practical example of using the Order is canceled trigger to automatically send email notifications to designated recipients:
- Trigger: Cancel order trigger
- Action: Send email notification
Available Templates
Here is a ready-to-use template that incorporates this trigger. Click the template to view or apply it:
- Notify staff when an order is canceled: When an order is set to Canceled, an email will be sent to a designated inbox. The subject and body are customizable, and you can insert variables such as Order ID and cancel reason via the parameter picker.