Goal: automate sending an invoice to an alternate address stored in a customer metafield (e.g., “accounts email”) when an order is placed.
Key context: Shopify Flow is the store automation tool; customer metafields hold custom data tied to the customer.
Suggested approaches:
General direction: Use Shopify Flow’s B2B-oriented flows, leveraging custom field/metafield tags alongside Flow.
Concrete setup:
Trigger: Order created.
Action: For Each over order.customer.metafields.
Condition: Match the metafield (namespace/key) for the “accounts email”.
If true: Send email action with recipient set to {{metafieldsForeachitem.value}}.
Notes/clarifications:
The example relies on Flow’s generic Send email action using the metafield’s value as the recipient.
Technical terms: “Metafield” = custom data field; “namespace/key” = identifiers for locating the correct metafield.
Status: Guidance and a step-by-step Flow outline were provided; no confirmation yet that the invoice email is successfully sent, so the thread appears open.
Hello Leigh,
When it comes to triggering emails using specific metafields Shopify Flow’s B2B flows are probably the best place to start. A lot of our Customer Fields clients with B2B tagging needs use our custom field metafield tags and then couple them with the flexibility of Shopify Flow.
I hope this helps.