B2B
Capture order company name to metafield
Copies the company name from order addresses into an order metafield at creation time.
Setup guide
Before you start
This template writes the company name found on a new order into an order metafield. It uses the shipping company when available and falls back to the billing company.
Configure in setup
Metafield namespace: namespace to write on the orderMetafield key: key to write on the orderMetafield type: metafield type, usuallysingle_line_text_field
Notes
- Orders with no company name in either address are skipped
- The workflow writes directly to the order metafield using Shopify GraphQL
Setup fields
Metafield namespace
textRequiredconfig
Namespace for the order metafield that will store the company name.
Metafield key
textRequiredconfig
Key for the order metafield that will store the company name.
Metafield type
textRequiredconfig
Metafield type used when writing the company name.