I have a Flow all setup to send an email out to the Case Contact using Email Alert. However, when I get to the actual "Send Email Alert" I get this error:.
- We were unable to process the email template. Error Message: core.email.template.TemplateRenderingException: We don't recognize the field prefix Recipient. Associate a record that matches the prefix or update the template to remove the merge field from the body, subject, or letterhead.
Setup -
In the Lightning Email Template I use the merge field {{{Recipient.FirstName}}}.
In the Email Alert "Recipient Type" I am using - "Related Contact: Contact Name"
Flow question -
How do I "Get" the Related Contact to pass into the "Send Email Alert"?
In the "Email Alert" you only have the option to "Set Input Variables"
I need the Email to be referencing the Case as there are other merge fields in the Lightning Email Template that are coming from the Case. Right now I have the Input Value set to {!$Record.Id}
I am stumped
Hi @Mike Rydell,
Yes, I have seen that the recipient merge field doesn't work here as well.
As the recipient of the email is going to be the contact, in a Classic Email Template you can use the Contact merge field to bring back the Contact's full name:
{!Case.Contact}However, in a Lighting Email Template, I think you are going to need to create a text formula field on the Case which simply shows the Contact's name. Something like:
Contact.FirstName & " " & Contact.LastName
And then use this field in your Lightning Email Template.
Does that work for you? Thanks, Angus