Archived Products Flow

Solved

Archived Products Flow

CrossVintage
New Member
5 0 0

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.

Accepted Solution (1)

paul_n
Shopify Staff
1491 161 349

This is an accepted solution.

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 

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.

View solution in original post

Replies 4 (4)

paul_n
Shopify Staff
1491 161 349

This is an accepted solution.

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 

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.
CrossVintage
New Member
5 0 0

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

Thanks

paul_n
Shopify Staff
1491 161 349

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

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.
CrossVintage
New Member
5 0 0

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

Screenshot 2025-01-07 100028.png