Tag products for a margin review when a variant cost rises
When a variant's cost per item rises by more than 5 percent, add the tag margin-review to its product. The trigger carries the old cost, the new cost and the percentage, so no calculation is needed.
One trigger, built-in Shopify actions only, no other app needed. Nothing in it is specific to a store, so it works as soon as it is imported.

What it needs
- The app's permission Inventory Data Access + Product, Variant & Collection Data Access. See Permissions and data access.
- Nothing else: turning the workflow on switches the trigger Product Variant Cost Changed on in the app.
Install the Workflow Trigger Extensions app and grant Inventory Data Access and Product, Variant & Collection Data Access on its Permissions page. Turning this workflow on switches the trigger on in the app.
Get the workflow
- Download the
.flowfile attached at the bottom of this page. - In your Shopify admin open Flow, click Import and choose the file.
- Check the steps, then click Turn on workflow.
The file is an export from Shopify Flow itself. Do not edit it by hand; change the workflow in Flow after importing it.
How it works
- Product Variant Cost Changed carries the old cost, the new cost,
delta,percentChangeanddirection. - The Condition continues when
variantCostChange.percentChangeis Greater than5. - Add product tags puts
margin-reviewon the product.
Make it yours
- Change
5to your own tolerance. - Add Send internal email to purchasing with the old and the new cost.
Next steps
- Inventory triggers, step by step - every field this trigger sends, with more examples.
- Workflow templates - all templates.
- Event history and troubleshooting - check that the trigger fired.

