Shopify Flow adds eight 'updated' triggers that start workflows when watched fields change
Shopify Flow has eight new triggers that start a workflow when a watched field changes on customers, orders, refunds, returns, fulfillment orders, collections, locations or inventory items. Up to five fields can be monitored.
What happened
Per Shopify Changelog, Shopify Flow is now adding eight new triggers. These triggers will kick off the workflow when a record in the store is changed on one of eight types: orders, customers, refunds, returns, fulfillment orders, collections, locations and inventory items. This is similar to the current trigger for Product updated. You'll be able to select as many as 5 fields to monitor. And when any of those fields are changed, the workflow will be triggered. The index for the changelog also gives a summary which mentions that workflows will be run when one of the fields on the eight types of records are updated.
Why it matters
According to Shopify, these triggers simplify reacting to changes, cutting out scheduled workflows and workarounds. Companies with the habit of polling for changes on a schedule can now use a trigger-based approach to do it instead, for these eight record types.
The company provides three use cases: first, notify fulfillment team when shipping address on an order changes; second, when a collection gain or lose products; third, write product metafield when inventory item cost changes.
Collections and Customers are now some of the record types available to marketing and merchandising teams. You can now automatically trigger a workflow simply by changing what's in a collection.
You can use a product model similar to the products. The Product updated trigger will allow you to monitor up to 5 fields for product (e.g. tags, metafields, prices). New triggers will also allow you to watch up to 5 fields (same limit). This limit requires each workflow to have a short list of preselected fields.
There's also a governance piece to this. As a separate change, now Flow will check staff members' admin permissions before they are allowed to test/turn on a workflow. The folks creating automations on these new triggers need these admin permissions in place.
What to do
- List your scheduled workflows. Open Shopify Flow and note every workflow that runs on a schedule only to see whether something changed. Shopify presents the new triggers as a way to act on changes without scheduled workflows or workarounds.
- Match each one to a trigger. Check whether each scheduled check concerns one of the eight covered record types, such as orders, customers, returns or collections. Those are candidates to rebuild on an updated trigger.
- Pick the fields before you build. Each trigger watches up to 5 fields and runs when any of them changes. Write down the fields that matter for each use, and put anything beyond that in a separate workflow.
- Start with Shopify's own examples. The changelog names address-change alerts for the fulfillment team, collection membership changes and cost-driven metafield updates. They make sensible first tests because the field to watch is obvious.
- Review collection-driven marketing. If campaign pages or product groupings depend on what a collection holds, consider a workflow that reacts when products enter or leave it.
- Check staff permissions. Flow now checks admin permissions before a workflow can be tested or turned on. Confirm that the people building and testing workflows hold them.
- Test before you retire the old version. Run the new triggered workflow alongside the scheduled one until it fires on the changes you expect, then switch the scheduled one off.