Re: Create a flow that checks orders every hour and adds a tag if all products have inventory availa

Create a flow that checks orders every hour and adds a tag if all products have inventory available

RazvanTenq
Tourist
10 0 3

Hi,

I am looking to create a flow that checks orders every hour and adds a tag to the orders that have all items available in stock.

I already have a flow that checks the inventory when the order is created, but i need to check the orders every hour because i receive products often.

Any advice will be very appreciated.

Thanks

Replies 7 (7)

paul_n
Shopify Staff
1717 188 395

I don't think there is a way to run a query to get orders by their inventory. The available filters are here :https://shopify.dev/docs/api/admin-graphql/2024-07/queries/orders#argument-query-filter-default

 

You might be able to instead tag all orders up front that don't have the necessary inventory and then a Get Order data step to query orders with that tag. And then check the inventory for each of those orders. Make sure to clear the tag once it has the inventory.

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.
RazvanTenq
Tourist
10 0 3

Hi Paul, thanks for your reply.

I think your solution is what i am looking for, the one with Get Order with a tag. But can you help me create the flow?

paul_n
Shopify Staff
1717 188 395

I don't have enough time to be a solution engineer unfortunately. How this best works if that you give it a try and then post back when you have questions. If you need help and don't mind paying to get is done, there are partners who are experts in Flow that post here regularly. 

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.
RazvanTenq
Tourist
10 0 3

I don't mind paying. Can you reccomend me someone?

EssDeeJay
Shopify Partner
7 0 3

This seems possible. We have created such flows for one of our clients. If you are still looking for someone, we can help. Please reach out to us via email or our website

Founder | Lead Developer @The SJ Development
Contact Us
Website | Email
paul_n
Shopify Staff
1717 188 395

I don't want to play favorites here, but there are a few people who might be interested and post here regularly, so you can gauge their Flow knowledge.

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.
Kalen_Jordan
Shopify Partner
803 39 147

Hi Razvan - happy to help here. I have a flat rate $140 fee for fixing a flows that are not super complicated, which I think this one would likely fall under - there's a purchase option here:

https://www.flow-helper.com/