Add order tags

The Add order tags action adds a tag to the order that triggers the workflow.

Fields

The Add order tags action contains the following fields.

Fields used in the Add order tags action.
Field Description
Tags The tags to add to an order. Tags are case sensitive. To add multiple tags, do one of the following:
  • Enter each tag separately by typing the tag, and then pressing the enter key.
  • Enter multiple tags at once by separating them with commas. Whitespace between commas is removed.

    For example, entering tag1,tag2,tag3 and then pressing enter key results in tag1,tag2,tag3 initially displaying in the action. When the action is taken, three separate tags are added: tag1, tag2, and tag3.

In addition to adding separate tags by pressing the enter key for each one, its important to note that tags are also split by commas. So typing tag1,tag2 will show up in the UI as tag1,tag2 in a single block, but will apply 2 tags (tag1 and tag2). This has benefits in that liquid can produce a comma-separated list of tags and have all of them applied (although that functionality is actually broken on FlowV2 right now).

Triggers

The Add order tags action has a hidden field added to it by the trigger. This field, Order ID, identifies the order to add tags to. The order ID is set by default and can't be changed.

The Add order tags action can be used in workflows that start with the following triggers:

  • Fulfillment created
  • Fulfillment event created
  • Order cancelled
  • Order created
  • Order fulfilled
  • Order paid
  • Order risk analyzed
  • Order transaction created
  • Refund created
  • Tender transaction created

Example

Example of a workflow that adds a tags when an order is created

In this example workflow, the new tag is added to all newly created orders.

API details

To learn more, review the tagsAdd mutation.

Ready to start selling with Shopify?

Try it free