We have a handful of suppliers that we can get the same product from if it’s in stock. We are a smaller store with online/retail setup. I’d like an item than goes out of stock to automatically be added to a draft PO. I’d like all of them on 1 so I can review and determine if it’s something we need to reorder. Is there a flow to do this? I know I can get a
Should be able to do that with the draftOrderCreate admin mutation:
If you’d like any help getting that set up, let me know!
Thanks! Is there a way to have it check if a PO is currently in draft and if so, to add to that line vs. creating a new one?
Probably if you used “Get draft order data” to first get draft orders that have that SKU. And then check if count is >= 1. One issue is that you might have multiple draft orders with that SKU that are unrelated. So you might want to include a tag on the draft order like “out-of-stock” and then you could include that tag in your query for “Get draft order data”. Something like
default:{{variant.sku}} AND tag:“out-of-stock”
We plan to only keep one draft PO open at a time. Once I review it and order, we will mark it ordered. From that point I’d open up another draft and let it continue to add OOS product to it until I review again the following week.
Let me know if you’d like any help with this! Shot you a dm as well.
