I am trying to build a flow that runs every one hour and tags the orders if all order items inventory is greater than 0. Basically if all the products in the order are in stock.
I see that it added and order tag for that first order. If you aren’t seeing the tag, then you have another app that is overwriting tags.
Your condition logic is basically:
If any of the returned orders (from Get order data) has all variants in stock
Then you loop over all of the orders, regardless of whether they met the condition and add a tag
So at the very least, you need to put the condition instead inside the “for each” loop like I said above. Then choose the individual order item from that loop, something like (if all of getOrderData__item / lineitems has an lineItem_item / variant / inventoryQuantity > 0)