Skip to content

Latest commit

 

History

History

auto-remove-a-product-tag-x-days-after-its-added

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Auto-remove a product tag x days after it's added

Tags: Auto-Tag, Schedule, Untag

Use this this task to monitor for the addition of a specific product tag, and to schedule the product to be untagged a configurable number of days later. Useful for temporarily adding a product to a collection, or qualifying the product for some other temporary functionality.

Default options

{
  "tag_to_monitor__required": null,
  "days_to_wait_before_untagging__number_required": null
}

Learn about task options in Mechanic

Subscriptions

shopify/products/update
user/task/untag_product

Learn about event subscriptions in Mechanic

Documentation

Use this this task to monitor for the addition of a specific product tag, and to schedule the product to be untagged a configurable number of days later. Useful for temporarily adding a product to a collection, or qualifying the product for some other temporary functionality.

As soon as that tag is detected, the task will add a second tag, indicating that the product is scheduled to be untagged. (For example, if the task is configured to watch for the tag "Approved", the task will add the tag "Approved - will be auto-removed by Mechanic".) The task will then schedule a followup event for the future, according to the configured number of days to wait. At that time, the task will remove both tags.

Important note: To prevent the task from untagging the product later, manually remove the task's additional tag (i.e. the "will be auto-removed by Mechanic" tag).

Installing this task

Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!