Automation 💎 Built for Sidekick ⚡ Sidekick does this for you
shopify sidekick automation inventory fulfillment flow

Release Held Orders When Backordered Item Restocks

Build a Flow that finds orders held for a backordered item and releases their fulfillment hold the moment that variant is back in stock.

đź“‹ Prompt
Run in Sidekick
Build a Shopify Flow that unblocks held orders as soon as a backordered variant restocks.

Prerequisite: orders waiting on this item are already tagged “[BACKORDER_HOLD_TAG]” (e.g. “backorder-hold”) and their fulfillment order is on hold — pair this with the “hold orders containing pre-order/backorder items” Flow if that tagging doesn’t exist yet.

Trigger: Product variant back in stock, for [PRODUCT_NAME] / variant [VARIANT_NAME].

Actions:

  Get order data — query orders tagged “[BACKORDER_HOLD_TAG]” that are still open, up to 100 results, sorted oldest first.
  For each order in the results:
    
      Release fulfillment order holds.
      Remove order tags “[BACKORDER_HOLD_TAG]”.
      Add order tags “[RELEASED_TAG]” (e.g. “backorder-released”).
    
  
  Send internal email to [FULFILLMENT_EMAIL] summarizing how many orders were released and for which product.


Before activating:

  Show me the exact query used to find held orders and confirm the tag names match what I actually use.
  Confirm this should process oldest orders first (FIFO) if stock is limited.


After I confirm, create and turn on the Flow.

Note: if incoming stock is smaller than the number of held orders, this Flow will still try to release all matching holds — it has no allocation logic. If you want it capped to available quantity, tell me and I’ll add a “maximum number of results” limit tied to the restocked quantity instead of releasing everyone at once.

How to Use

  1. Copy the prompt above
  2. Open Shopify Sidekick in your Shopify admin
  3. Paste the prompt and replace the bracketed placeholders with your details
  4. Review Sidekick's response and apply the suggestions