Workflow templatesTag products as discontinued when an active product is archived

Tag products as discontinued when an active product is archived

Copy page

When an active product is archived, add the tag discontinued. The trigger carries the status before and after, so archiving a draft that was never sold does not match.

When an active product is archived, add the tag discontinued. The trigger carries the status before and after, so archiving a draft that was never sold does not match.

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.

The workflow in Shopify Flow: Tag products as discontinued when an active product is archived
The complete workflow as it looks in Shopify Flow.

What it needs

  • The app's permission Product, Variant & Collection Data Access. See Permissions and data access.
  • Nothing else: turning the workflow on switches the trigger Product Status Changed on in the app.

Install the Workflow Trigger Extensions app and grant Product, Variant & Collection Data Access on its Permissions page. Turning this workflow on switches the trigger on in the app.

Get the workflow

  1. Download the .flow file attached at the bottom of this page.
  2. In your Shopify admin open Flow, click Import and choose the file.
  3. 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

  1. Product Status Changed carries oldStatus and newStatus.
  2. The Condition matches oldStatus Equal to active and newStatus Equal to archived.
  3. Add product tags puts discontinued on the product.

Make it yours

  • Add Remove product tags for new-arrival or on-sale in the same step list, so an archived product leaves every merchandising collection.
  • Export products with the tag discontinued for your supplier or ERP.

Next steps