Company Action: Set a company metafield value
The Set a company metafield value Action allows you to create or update metafields on a Shopify B2B Company record using Arigato Automation. This Action is ideal for storing and managing custom data such as sales rep assignments, company classifications, approval statuses, and other structured information tied to a company profile.
Configuring the Action
| Field Name | Description | Example |
|---|---|---|
| Namespace | The namespace groups metafields under a logical category. Use a meaningful namespace for organization. | custom_fields |
| Key | The unique identifier for this metafield within the namespace. | account_tier |
| Value | The data you want to store in the metafield. Tokens are supported. | {{ company.name }} |
| Type | The metafield type, following Shopify's metafield type system. Examples include single_line_text_field, number_integer, and boolean. |
single_line_text_field |
Troubleshooting & Usage Tips
Metafield not appearing in Shopify Admin: Ensure the metafield definition exists under Settings → Custom Data → Companies. Shopify requires metafield definitions before they can be viewed or edited in Admin.
Type mismatch errors: Make sure the value you provide matches the metafield's defined type. For example, boolean metafields accept only true or false, and number fields must contain only numeric values.
Credit Cost
The Set a company metafield value Action incurs a cost of one Action Credit on Lite plans and is unlimited on Unlimited plans.
Custom Actions
The Set a company metafield value Action within Custom Actions is fully supported. Additional information and examples are available in the documentation.