Archived Products Flow

Topic summary

A user wants to automatically set inventory quantities to zero when products are archived in Shopify.

Proposed Solution:

  • Use Shopify Flow with the “Product status changed” trigger
  • Add a condition to check if new status equals “archived”
  • Execute a “Send Admin API” request using either inventorySetQuantities or inventoryAdjustQuantities GraphQL mutations

Current Status:
The original poster has set up the trigger and condition but is stuck on implementing the API request portion. They’ve shared a screenshot showing their progress but are uncertain about the final configuration step, specifically the coding/technical implementation required for the API call.

Resolution Status:
Ongoing - awaiting further guidance on completing the API request configuration. The helper has requested more specific details, including screenshots and any code attempted, to provide targeted assistance.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

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