Flow Automation: Triggering Workflows When Inventory Levels Change at a Location
You can use the Inventory level updates trigger in Flow Automation to initiate workflows whenever the stock quantity of a SKU at a specific location is modified. This is essential for managing multi-location fulfillment, automating stock transfers, or tracking regional inventory fluctuations.
This guide explains the actions supported by this trigger, how to test it end to end, and provides a practical example for automating inventory notifications.
Supported Actions
The following actions are primarily used in workflows initiated by the Inventory level updates trigger:
- [Product] Delete SKU
- [General] Send Email Notification
- [General] Update Counter
- [General] For Each Loop
| Note: If you need to trigger a workflow based on inventory changes at the product variant level rather than a specific location, please refer to "Flow Automation: Triggering Workflows When Product Inventory Changes." |
Testing the Workflow
To test whether the workflow is successfully initiated when the inventory at a location is updated, follow these steps:
- In Flow Automation, set up a workflow using the Inventory level updates trigger.
- From your SHOPLINE admin panel, go to Products > Inventory.
- Select a location, then find a product and update its inventory quantity in the Available column.
-
After saving the changes, go to the 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 Inventory level updates trigger to automate internal stock alerts.
Scenario: Send low stock email alerts to staff when inventory at a specific location drops.
- Trigger: Inventory level updates
- Condition: Check if the variant's available inventory is less than or equal to the assigned number (i.e., 10).
- Action: Send email notification
-
Recipient: Manually enter the recipient's email address
- Subject: [Example] Location-based Inventory Update Alert
- Outcome: Whenever stock at a specific location falls below the defined threshold (e.g., 10 units), the system automatically triggers an email notification, ensuring the operations team remains informed about stock movements across all locations.