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.
A user wants to automatically set inventory quantities to zero when products are archived in Shopify.
Proposed Solution:
inventorySetQuantities or inventoryAdjustQuantities GraphQL mutationsCurrent 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.
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
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