添加草稿订单标签

添加草稿订单标签操作可向触发工作流的草稿订单添加标签

当您通过草稿订单创建订单时,此草稿订单的标签将转移并添加为订单标签。

本页相关主题

字段

添加草稿订单标签操作包含以下字段。

“添加草稿订单标签”操作中使用的字段。
字段 描述
标签 要为草稿订单添加的标签。标签区分大小写。若要添加多个标签,请执行以下一项操作:
  • 通过键入来单独输入每个标签,然后按 Enter 键。
  • 输入多个标签并用逗号分隔。逗号之间的空格会被删除。

    例如,输入 tag1,tag2,tag3,然后按 Enter 键便会生成操作中初始显示的 tag1,tag2,tag3。当执行操作时,系统便会添加三个单独的标签:tag1tag2tag3

触发器

添加草稿订单标签操作具有由触发器添加的隐藏字段。草稿订单 ID 字段标识要为其添加标签的草稿订单。草稿订单 ID 由系统默认设置,无法更改。

添加草稿订单标签操作适用于以下触发器启动的工作流:

示例

在创建草稿订单时添加标签的工作流示例

在此示例工作流中, newdraft 标签将添加到所有新创建的草稿订单中。

API 详细信息

若要了解详细信息,请查看 tagsAdd 更改。

常见问题

Flow says that it added a tag but the tag isn't available in the Admin.

Reason: an app (typically) or Admin user overwrote the tag. This happens because many apps use the same events, such as Order created, as Flow. Flow often finishes first, and then other apps make edits that don't take into account the new tags.

Solution: the best solution would be for the app to have an action in Flow that you could call after Flow runs. If such an action isn't available, then you should contact the app to ask them how to avoid overwriting your tags. If you can't solve the issue with the app, then you can try inserting a "Wait" step in Flow to delay when Flow adds tags.

准备好开始使用 Shopify 进行销售了吗?

免费试用