Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
I'm creating the following Shopify Flow to send an internal email if a SKU on an order is oversold.
However, I'm running into an issue where the flow is firing every time a product on an order is showing -1 stock, since our products have multiple variants, I only want the flow to check for stock levels of individual SKUs. The image below shows an example of the flow firing when I don't want it to, since the variant stock of -1 in this case isn't the SKU on the customer's order.
Any help or ideas would be appreciated.
Thanks!
Solved! Go to the solution
This is an accepted solution.
You are checking if at least one line item has a product where at least one variant <= -1.
Change that to check:
if at least one order / lineItems / variant / inventoryQuantity <= -1
Hi @BAdam
Have a try like below
Hi @Sonya_2025,
I have set it to zero to see if the flow will target just the specific SKU on an order. But I'm not sure how this will solve it, because I only want the flow to fire when a SKU on an order is oversold.
Currently, it will check the quantity of all the SKUs in a parent product and will pass the flow if it finds a variant with a quantity less then zero, even if the SKU he has in his order is over 0.
I hope that makes sense.
Hi @BAdam
Pls pay more attention at the place I marked. It is different to your settings.
This is an accepted solution.
You are checking if at least one line item has a product where at least one variant <= -1.
Change that to check:
if at least one order / lineItems / variant / inventoryQuantity <= -1
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024