Order created
The Order created trigger starts a workflow when an order is placed by a customer, or when a draft order is marked as paid and converted to an order.
On this page
Data provided
The following data is provided to workflows that start with the Order created trigger.
Data | Description |
---|---|
order | The order that was created. Allows accessing data on the GraphQL Admin API Order object |
Testing the trigger
To test an active workflow that starts with this trigger, you can:
- Create an order through the storefront
- Create a draft order and mark it as paid
- Choose an existing order in the Admin and use the Run Flow automation option.
Actions
This trigger provides an order, so it enables you to use any action that requires an order, including:
- Add order line item
- Add order tags
- Archive order
- Cancel order
- Capture payment
- Hold fulfillment order
- Mark order as paid
Orders allow you to access other data like the customer, so it can be used with customer actions. These include:
- Add customer tags
- Remove customer metafield
- Remove customer tags
- Update customer metafield
- Update customer note
Orders also contain lists of data like line items. Using a For each action, you can loop through these lists and perform actions on each item. For example, you can loop through the line items and add a tag to each product.
Example
In this example workflow, a customer note is updated when that customer creates a new order.