Re: Help with current Flow - checking if each warehouse location has active inventory (screenshots)

Help with current Flow - checking if each warehouse location has active inventory (screenshots)

OSINC
Tourist
5 0 2

Screenshot 2024-09-01 130411.jpg

 

I need to see if each location has active inventory so that Flow will automatically update the metafield "Shipping Template" based on active inventory and whether or not the item is Prime. So with this specific workflow, all 3 locations need to have active inventory and Prime needs to be "Yes." The problem is, even if one of the 3 locations is at 0 inventory, it is coming back as true. What might be wrong? It seems to be combining inventory at all locations and putting "true" on all of them even if only one location has inventory.

Replies 2 (2)

tim
Shopify Partner
3765 351 1386

Yes, productVariant.inventoryQuantity is a total for all locations if you're using this one.

 

I'd be trying this as a starter:

Screenshot 2024-09-02 at 4.31.41 PM.png

 
 
 
If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
paul_n
Shopify Staff
1336 151 307

This is the right variable, but do not use "all of" because that will check that all locations have inventory of 0.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.