Add/update metafield values on an order, draft order, product, or customer
Last updated
Last updated
Before using these actions, Metafields will need to be set up on an order, draft order, product, or customer on the Metafields page of your Shopify admin. You can follow this Shopify guide on how to create your meta fields: Metafields.
Here is a screenshot of an example of how a meta field will display on a Shopify order in the Shopify admin.
MESA offers Shopify actions that will add or update the values (i.e. Hello!) of the metafields for an order, draft order, product, or customer.
While creating a workflow on the MESA dashboard, you can select these actions under the Shopify app. Select Set Order Metafield action.
Using the Set Order Metafield action as an example, your workflow will need to contain a Shopify Order Created step before the Shopify Set Order Metafield step.
In the Shopify Set Order Metafield step, you will need to fill in the Order ID, Key and Value fields.
To locate the Order ID, your workflow will need to contain a Shopify Order Created step before the Shopify Set Order Metafield step. You will need to use MESA's Variables feature, the {+} icon, which is located to the right of the field. Afterwards, MESA will suggest the variables for Order ID so you will want to select that.
The Key comes from the Metafields page of your Shopify admin. You can fill in whatever value you would like to add. If you would like to add a value from the order's data, you can use MESA's Variables feature, the <> icon, which is located to the right of the field.