Global Action: Set a Shop Metafield Value

The Set a Shop Metafield Value Global Action allows you to create or update metafields on your Shopify store itself (not tied to a product, order, or customer). Use this Action to store global settings, feature toggles, theme values, or any custom data your Workflows rely on.

Configuring the Action

To configure this Action, open the Workflow editor and add the Set a Shop Metafield Value Action. You can enter static values or use Tokens to make the metafield update dynamically. It is also possible to select the setting for defined metafields and have the namespace and key automatically populated.

Field Name Description Example
Namespace A required grouping key to organize metafields and avoid naming conflicts. store
Key The unique identifier for this metafield within the namespace. Must be lowercase, no spaces. holiday_message
Type The metafield type defining the data format (e.g., single_line_text_field, boolean, number_integer). single_line_text_field
Value The data you want to store in the metafield. Tokens are supported. {{ product.title }}

Credit Cost

The Set a Shop Metafield Value Action costs one Action Credit on Lite plans and is unlimited on Unlimited plans.

Custom Actions

The  Set a Shop Metafield Value Action within Custom Actions is fully supported. Additional information and examples are available in the documentation.