Flow Automation: Updating Draft Order Notes via Action
You can use the Update draft order note action in Flow Automation to automatically add notes to draft orders. This action can add follow-up reminders, quote details, or source labels for you. Your staff can see the current status and next steps as soon as they open a draft order, so they don't have to add notes manually, and fewer follow-ups get missed.
This guide explains the field descriptions for this action, the applicable workflows, and how to use it in real-world scenarios so that no draft order follow-up gets missed.
When to Use the Update Draft Order Note Action
Use the Update draft order note action when:
- You want to automatically add a follow-up reminder after a new draft order is created, such as "Contact the customer to confirm the quote."
- You want to automatically generate notes from the information in a draft order, so you don’t need to type manually.
- You want to regularly find draft orders that haven't been completed and mark them "Pending follow-up" in their notes.
Field Descriptions
The Update draft order note action lets you choose the draft order to update and the note content to add.
| Field | Description |
| 【Draft order ID】 | The draft order whose note you want to update. You can click + Add variables and select the [Draft order ID] provided by the trigger or a previous step. |
| 【Draft order note】 | The note content to add. You can enter fixed text, or click + Add variables to insert draft order information. |
Applicable Workflows
The Update draft order note action is primarily used in workflows initiated by the following triggers:
-
Draft order created
Note: For more details on how to set up the Draft order created trigger, please refer to "Flow Automation: Triggering Workflows When a Draft Order is Created" -
Scheduled time
Note: The Scheduled time trigger starts the workflow only at the time you set, and it doesn't specify a draft order. To use this trigger, first add the Bulk query draft orders action to find the matching draft orders. Then add a For each loop (iterate) to run the Update draft order note action for each draft order.
Testing the Workflow
To test whether the workflow successfully updates the draft order note, follow these steps:
- In Flow Automation, set up a workflow using the Draft order created trigger and the Update draft order note action, then click Publish to activate the workflow.
-
From your SHOPLINE Admin, go to Orders > Draft Orders , then click Create.
-
Add the items and customer information, then click Save draft order to create a test draft order.
Note: For detailed steps on creating a draft order, please refer to "Creating Draft Orders" -
After saving, go to Flow Automation to check the 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 Update draft order note action to remind your sales team to follow up on new draft orders.
Scenario: Automatically add a follow-up reminder to the note when a new draft order is created, so your sales team doesn't forget to contact the customer.
- Trigger: Draft order created
-
Action: Bulk query draft orders
- Query conditions: Draft order number [Draft order ID]
- How to sort query results: Draft order creation time in ascending order
- The quantity to keep in the query result: 1
- For each loop (iterate): Set the loop object to Bulk query draft orders
-
Action: Update draft order note
- Draft order ID: [Draft order ID]
- Draft order note: Please contact the customer to confirm the quote, and then convert the draft order into an order.
- Indicates whether the product is subject to tax: Please fill in based on your needs.
- Calculate inventory mode: Please fill in based on your needs.
- Indicates whether there is a stock reservation identifier at the order level: Please fill in based on your needs.
- Outcome: Every new draft order automatically gets a follow-up reminder. When your sales team opens a draft order, they can see what to do next.
| Note: To insert the information shown in square brackets (such as [Draft order ID]), click + Add variables and select the corresponding parameter. |