You cannot currently set that limit dynamically.
Topic summary
Goal: Set a variable limit for the Get Order Data action in Shopify Flow to remove only the oldest N backorder tags when limited stock arrives.
Context: Shopify Flow (Shopify Plus automation) triggers on product quantity changes. The flow queries orders with an advanced filter and then removes tags tied to a product’s SKU on backorder.
Setup shared: Advanced query used — fulfillment_status:unshipped AND NOT status:cancelled AND tag:“BackOrder {{ productVariant.sku }}”. An attached screenshot illustrates the Flow configuration; the query and limit setting are central.
Key issue: The user wants the Get Order Data “limit” to be dynamic (e.g., match the number of units received) rather than a fixed number set in the action’s top-level setting.
Latest update/outcome: A reply confirms this is not currently possible; the limit cannot be set dynamically in Shopify Flow. No workaround or alternative method was provided.
Status: Unresolved feature limitation; discussion effectively closed without an actionable solution.