AS per Salesforce's documentation Email Alert Actions

Lightning Email Templates

In Lightning email templates, merge fields are resolved for activity-enabled objects 
only, except Contact and Lead merge fields.

I have used an email alert (OBJECT: Contact) in my Flow (Triggering object Contact) , Lightning Email Template (Related Entity Type: Contact)

In the email template I have used the Merge field {{{Recipient.FirstName}}} which as per the documentation is correct.

Yet, my flow thrown an error

core.email.template.TemplateRenderingException: We don't recognize the field prefix 

Is using classic email template the only option ?

1 Answer 1


It looks like Recipient merge fields cannot be used in Flow Email Alert Actions currently. There is an idea that promotes this as an enhancement: https://ideas.salesforce.com/s/idea/a0B8W00000GdVTyUAN/set-email-alert-recipients-from-process-builder-or-workflow

As a workaround you can try to rebuild the Email template as a text template variable in the flow and trigger it with a simple Email Action.

  • That's what i ended up doing - simple Email Action Commented Oct 27, 2022 at 20:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .