Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I would like to tag orders with a pre-order tag using shopify flow when -
any item on the order has available quantity <=0 for a specific location.
Our current flow is not working correctly as it is looking at quantity across all locations.
My Flow trigger is order created.
Attached screenshot of current flow.
Solved! Go to the solution
This is an accepted solution.
You have a loop in that condition (order / lineItems / variant / inventoryItem / variant), which you should remove. That is NOT checking location inventory. Instead you should check:
order / lineItems / variant / inventoryItem / inventoryLevels / available (its under deprecated)
Overall your condition should look close to this:
if at least one of order / lineItems
if at least one of variant / inventoryItem / inventoryLevels
level_item.available <= 0
AND
location.name == "Warehouse"
This is an accepted solution.
You have a loop in that condition (order / lineItems / variant / inventoryItem / variant), which you should remove. That is NOT checking location inventory. Instead you should check:
order / lineItems / variant / inventoryItem / inventoryLevels / available (its under deprecated)
Overall your condition should look close to this:
if at least one of order / lineItems
if at least one of variant / inventoryItem / inventoryLevels
level_item.available <= 0
AND
location.name == "Warehouse"
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025