Questions tagged [lightning-email-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

Attribute "src" on element <img> is not allowed, or has an invalid value

I have a packaged Lightning Email Template. I am able to upload an image file to a Lightning Email Template with ease. However, when I then try to move that email template to a new environment (i.e. ...
0
votes
1answer
29 views

Replacing text in lightning email template from apex

I have an Email template which looks like that : ----------------------- Name : {ContactName} Account : {AccountName} {price} : {Cost} Date: {MinDate} ------------- I'm using the email template to ...
0
votes
0answers
34 views

Conversion of Visualforce Email Templates to Lightning Email Templates

I am trying to convert Visualforce Email template to Lightning Email template but I am getting following error Apex Repeat is not allowed or invalid attribute <table border="1" > &...
1
vote
1answer
65 views

Conditions in Handlebars Merge Language: how to avoid empty lines?

In a Lightning e-mail template, I want to conditionally add links to photos, like this: {{#if Case.Photo_1_relevant__c}}{{{Case.Photo_URL_1_as_link__c}}}{{/if}} {{#if Case.Photo_2_relevant__c}}{{{Case....
0
votes
1answer
68 views

How to convert HML to SML with a flow formula

I'm trying to work around a requirement with the Send Better Email Flow Action to have a recipient contact record, when using email templates. My use case, is that I'm sending 'case opened' emails to ...
0
votes
1answer
485 views

Can Lightning Email Templates call cross object merge fields?

Salesforce recently released a new version of the Lightning Email Templates promising Email template editor that don't suck. I've tried to find any documentation relating to calling the cross object ...
0
votes
1answer
377 views

How to use HML Conditional Merge Fields in Salesforce Email Template?

I was trying to create a Lightning Email template and came across the need to conditionally display fields on the e-mail sent. Searching the web regarding this issue drove me into this Use HML ...
0
votes
1answer
174 views

Lightning Email Template - "Click the Source icon to add HTML code" option missing

I am trying to see the html of my Lightning email template. According to the documentation, I should see an option "Click the Source icon to add HTML code" I don't see this option. Thoughts? ...
2
votes
1answer
609 views

Lightning Merge Fields Preview

I have recently moved to Lightning Email Template from custom classic email template. The difference I have observed is: Classic Email template resolve the merge fields upon insertion into Email ...
3
votes
2answers
882 views

Error when doing force:source:pull after creating an Email Template in a scratch org

I created a scratch org with the default scratch org definition file from sfdx force:project:create, and then I created an email template from the Email templates tab, and a Custom Object. When I did ...
3
votes
1answer
754 views

Validate Merge Fields on a Lightning Email Template in Apex

Is there a way to retrieve the merge fields of a specific Lightning Email Template in Apex? Example EmailTemplate template = new EmailTemplate(); template.getMergeFields(); I would like to validate ...
2
votes
1answer
2k views

Converting Email Templates from Classic to Lightning with "Not Allowed" errors

We are trying to convert some of our Classic email templates to Lightning email templates, but when we try to save our custom HTML into the source, we are receiving the following errors. The content ...