Why an ID and not a name
Rule names are not unique. Nothing stops you calling two rules "Wholesale minimum", and for a human reading the Rules list that is often the sensible thing to do, because they cover different collections.
A Flow action that matched on that name would have to pick one, and it would pick silently. Targeting by ID removes the guess: either the action changes the rule you meant, or it fails visibly with an error you can see in the Flow run log.
Where to find it
Open any saved rule. The ID appears twice:
- A Rule ID line with a copy icon, just under the page header.
- A Rule ID card lower in the sidebar, with the same value and its own copy button.
Either copy button puts it on your clipboard and confirms with a toast.
Use it in a Flow action
Open the rule you want to target and copy its ID.
In Shopify Flow's editor, add the action, one of Set a rule limit, Toggle rule or Reset repurchase counter.
Paste the ID into the action's Rule field.
If you imported a template, the same step applies. Templates arrive with a placeholder in that field, described in Ready-made workflow templates.
Common mistakes
- Looking for the ID on an unsaved rule. It does not exist until the rule has been saved once.
- Typing the rule's name instead. Flow actions match by ID only.
- Assuming a rename breaks the workflow. It does not. The ID is unchanged by a rename, so an existing workflow keeps working.
- Copying from the wrong rule. Two similarly named rules are exactly the situation the ID exists to disambiguate, so check the page you are copying from. A duplicated rule gets its own new ID, covered in Edit, duplicate and delete rules.