Send email flow with order metafield after fulfillment

Hello, I have ceated an order metafield with the url containing the billing/receipt from which the customers will be able download.

I want to send the customers a flow email after the order is fulfilled, with this specific url metafield.

Please advice on how to proceed in setting up this flow.

Use {{ order.metafields.namespace.key }} inside your flow email.

Thanks for your quick reply.

My field code is: custom.boleta_o_factura

So the final code in the email should be: {{ order.metafields.custom.boleta_o_factura.key }} ?

Almost you don’t need .key at the end.

Your field is custom.boleta_o_factura, so in your flow email just use:

{{ order.metafields.custom.boleta_o_factura }}

That will output the URL you stored in the metafields.


I did a test email from the flow edit and got the following: (will this be fixed with the real url when sending the flow?)

Yes in test emails, Shopify Flow usually shows placeholder values (or even blank) because it’s not pulling from a real order.

When the automation runs on an actual fulfilled order, the variable

{{ order.metafields.custom.boleta_o_factura }}

will be replaced with the real URL stored in that order’s metafield.

To be 100% sure, place a real test order, add the metafield value, fulfill it, and let the flow send the email. That way you’ll see the actual link working.