Shop metafield trigger
Start a Shopify Flow workflow when a shop metafield changes. Track it in Workflow Trigger Extensions and get the old and the new value.
A store keeps one notice for the whole shop, such as its closing days, in the shop metafield Holiday notice (custom.holiday_notice), and the theme shows it. When someone changes the notice, the team should see the new text at once.
This page shows how to start a Shopify Flow workflow whenever a metafield of the shop changes, with Workflow Trigger Extensions. The steps are the same for every metafield of this resource type; the example uses Holiday notice (custom.holiday_notice).
What you need
- A metafield definition. Create it in your Shopify admin under Settings > Metafields and metaobjects > Shop. A metafield without a definition cannot be tracked.
- No extra permission. Shop metafields can be tracked as soon as the app is installed.
1. Track the metafield
- Open Metafield Triggers in the app and click Add trigger.
- Choose the resource type Shop.
- Tick the metafield, here Holiday notice. You can tick several at once or use Select all.
- Click Add trigger.
To track every metafield of this resource type, including the ones you create later, choose All metafields instead of ticking single ones, then click Track all metafields.

The trigger is Active at once. The first time the app reads the shop, it stores the current value without starting a workflow; every change after that starts one.
If the metafield is missing from the list, click Refresh Metafields on the Metafield Triggers page: the app remembers the list of definitions for an hour.
2. What the workflow receives
Every change starts the trigger Metafield Update in Shopify Flow with these values:
| Variable | Value |
|---|---|
resourceType |
SHOP |
resourceId |
The ID of the shop, for example gid://shopify/Shop/1234567890 |
metafieldKey |
Namespace and key, here custom.holiday_notice |
metafield.value |
The new value |
metafield.previousValue |
The value before the change, empty when the metafield was set for the first time |
metafield.type |
The type of the metafield, for example single_line_text_field |
3. Build the workflow
- In Shopify Flow, create a workflow and choose the trigger Metafield Update of Workflow Trigger Extensions.
- Add a Condition:
resourceTypeis equal toSHOP. Metafield Update starts for every resource type you track, so the condition keeps this workflow to the shop. When you track several metafields of the type, addmetafieldKeyis equal tocustom.holiday_noticeas a second criterion. - Add the action you need. The example sends an internal email with the old and the new value.

Start from the example
- Download the
.flowfile attached at the bottom of this page. - In your Shopify admin open Flow, click Import and choose the file.
- Open the Send internal email step and enter the recipient. The file holds no address on purpose.
- Turn the workflow on.
Make it yours
- Use
metafield.previousValueandmetafield.valuein the email to show the old and the new notice. - Post the change to a team chat with Send HTTP request.
- Add a condition on
metafieldKeywhen you track several shop metafields.
How fast it reacts
Shopify sends no notification for this, so the app reads the tracked metafields about once a minute. Expect the workflow within a minute or two.
Good to know
- There is one shop record per store, so
resourceIdis always the same.
More
- Metafield triggers: how metafield triggers work, for every resource type.
- Event history and troubleshooting: see every event the app sent, with the old and the new value.
