How to update inventory policy via Flows??

How to update inventory policy via Flows??

jobrien
Tourist
12 0 4

I would like to make a flow that does the following:

On a repeating schedule, check my products for any with the product tag "Discontinued". If "Discontinued", check that the inventory policy (ability to purchase when out of stock) is set to "deny".

 

Is this possible using Flow? And how? I am very new to Flow so please explain how it is if it is!

Replies 2 (2)

Maxleontech
Tourist
7 0 1

Here’s how you can do it in Shopify Flow:

1. Set a Schedule Use the Scheduled Time trigger to run daily or weekly.

2. Find Discontinued Products  Use Get Products and filter by the tag “Discontinued”.

3. Check Inventory Policy – If the product’s inventory policy isn’t set to “Deny”, move to the next step.

4. Update Inventory Policy Use Update Product Variant to change it to “Deny” if needed.

 

Do you understand 

jobrien
Tourist
12 0 4

I had the first three steps made, but there is no "Update Product Variant" block that I'm seeing to change the inventory policy setting. I see "Update product status" and "Update product variant metafield", but nothing else. Neither of those work. Do you know what the specific block you use to find the inventory policy settings is?

See the screenshot to see where I am now.

jobrien_0-1744033258473.png