Flow Automation: Triggering Workflows When a Fulfillment Is Created
You can use the New fulfillment trigger in Flow Automation to start a workflow whenever a fulfillment is created for an order. A fulfillment is generated each time items in an order are marked as shipped. It records which items were shipped, along with shipping details such as the carrier and tracking number. You can use this trigger to automatically tag orders, notify your customer service team to follow up on shipments, or track the number of fulfillments created.
This guide explains the actions supported by this trigger, how to test the workflow, and how to apply it in a real-world scenario.
| Note: This trigger provides the following information: package ID, create time, order number, logistics delivery status, logistics company name, third party tracking number, and product list (including the fulfillment status and product title). |
Supported Actions
The following actions are primarily used in workflows initiated by the New fulfillment trigger:
- [General] Send email
- [General] Update counter
- [General] Add delay
- [Order] Update order tags
- [Order] Update order note
- [Order] Find fulfillment orders
Testing the Workflow
To test whether the workflow is successfully triggered when a fulfillment is created, follow these steps:
- In Flow Automation, set up a workflow using the New fulfillment trigger, then click Publish to activate it.
- From your SHOPLINE admin panel, go to Orders and click an unshipped test order.
-
In the Unshipped section of the order details page, click Mark as shipped. Enter the quantity of the items being shipped, the tracking number, and the carrier. After confirming the details, click Mark as shipped in the upper-right corner.
Note: For detailed instructions, refer to "Guide to Order Fulfillment and Shipping." -
After marking the items as shipped, 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 New fulfillment trigger to share shipping information with your team.
Scenario: Each time items in an order are shipped, automatically tag the order and email the tracking details to your customer service team, so they can respond to customers' shipping inquiries.
- Trigger: New fulfillment
-
Action 1: Update order tags
- Order number: [Order number]
- Order tags: Shipped
-
Action 2: Send email
- Subject: Shipping notification: Order [Order number]
- Content: Order [Order number] has been shipped. Package ID: [Package ID]. Shipping carrier: [Logistics company name]. Tracking number: [Third party tracking number].
- Recipient: Manually enter your customer service team's email address.
-
Action 3: Update counter
- Counter name: Fulfillment count
- Counter value: Add 1
- Outcome: The customer service team receives the tracking details for every order without checking the admin panel. In the order list, filter by the Shipped tag to view all orders that have been shipped.
| Note: To insert the information shown in square brackets (such as the order number), click + Add variable and select the corresponding parameters. |