Add draft order tags

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

When you create an order from a draft order, the draft order tags are carried over and added as order tags.

On this page

Fields

The Add draft order tags action contains the following fields.

Fields used in the Add draft order tags action.
FieldDescription
TagsThe tags to add to a draft 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 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.

Triggers

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

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

Example

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

In this example workflow, the new and draft tags are added to all newly created draft orders.

API details

To learn more, review the tagsAdd mutation.

Ready to start selling with Shopify?Try it free