Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I am using the trigger ‘product variant inventory quantity changed’ in shopify flow.
i already figured out that InventoryQuantityPrior is available. Now I want to just check if InventoryQuantityPrior is less than the current inventory at the location it was restocked.
there’s already a trigger that checks if it goes from less than 1 to more than 0. However, sometimes our stock is negative and we want to know if something got returned that has a negative stock.
we don’t want to get notifications when the stock is reduced.
any ideas? basically I’m looking for a trigger “restocked” even if the stock is less than 1 after restocking.
I suspect you can't use inventoryQuantity prior because that is for the variant and it's a naive sum of all the locations (even those that are minus). Which means that you would need to store the prior quantity at that location using something like a metafield or tag. Tags are easier if you have just one location you care about, whereas metafields could work for many locations. Here's a template using tags to do something like this: https://shopify.com/admin/apps/flow/editor/templates/f310fc68-64c7-4234-91ea-888555a3ab8e
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025