Flow Automation: Triggering Workflows When a Draft Order Is Deleted
You can use the Deleted draft order trigger in Flow Automation to automatically start a workflow whenever a draft order is deleted in your SHOPLINE Admin. With this trigger, you can notify team members right away, and organize unfinished draft orders in bulk and check related data efficiently.
This guide explains the actions supported by this trigger, how to test the workflow, and how to notify your team promptly through a real-world scenario.
Supported Actions
The following actions are primarily used in workflows initiated by the Deleted draft order trigger:
- [General] Send email
- [Order] Bulk query draft orders
Testing the Workflow
To test whether the workflow is successfully triggered when a draft order is deleted, follow these steps:
- In Flow Automation, set up a workflow using the Deleted draft order trigger, then click Publish to activate it.
- From your SHOPLINE Admin, go to Orders > Draft orders.
-
Select a test draft order, then click Delete draft order.
- After deleting the draft order, go to Flow Automation to check the workflow’s execution results.
| Note: For more information on how to monitor the execution of your workflows, please refer to the “How to View the Running of a Flow” section in the “Introduction to Flow Automation” guide. |
Example Use Case
Here is a practical example of using the Deleted draft order trigger to notify your team.
Scenario: When an open draft order is deleted, automatically send an email to the operations team so they can promptly check the related customer and reserved inventory.
- Trigger: Deleted draft order
-
Action : Send email
- Subject: [Notification] A draft order has been deleted in the Admin
- Content: A draft order has been deleted. Please check the related customer and reserved inventory as soon as possible.
- Recipient: Your operations team’s email address
- Outcome: When a draft order is deleted, the operations team receives an email notification right away and can promptly check the related customer and reserved inventory without reviewing each draft order manually.