Archived Products Flow

I want to create a flow which does the following:

Items that are archived have their quantity reduced to zero.

I am struggling to find a way to do this on Shopify flow.

Product status changed

Check if new status == archived

“Send Admin API” request to update the inventory… inventorySetQuantities or inventoryAdjustQuantities depending on your need. https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/inventorySetQuantities

1 Like

Thanks for the reply! However, I am struggling with the step which involves the coding. Is there away around this?

Thanks

Not sure which “coding” you are referring to. If you can be more specific, including screenshots and whatever code you have written that would be helpful

Good morning,

I have got to this part but unsure what to do to get it working as I have missed something as I am not 100% sure on the end part.

Thanks