Skip to main content

Questions tagged [lightning-email-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
74 views

Converting Rendered Email Templates to PDFs - issue(s)

I'm hoping someone here will be able to help me as I have been trying different "solutions" for days now...to no avail. I am new to Apex and do have some Java in my backgorund...not much ...
greeng13's user avatar
-1 votes
1 answer
565 views

I want to make a URL from record in a custom object in lightning email template

"Hello everyone, I need help creating a URL in a Lightning email template in Salesforce. But what's special about my situation is that I need the email URL to take me to a path similar to this ...
Rodrigo Maldonado's user avatar
1 vote
1 answer
1k views

Using the Embed_a_Survey_Link email template to sund survey's on cases. Can I add the case fields?

We are using surveys to send our customers CSAT upon a case is closed. In the Embed_a_Survey_Link (standard tempalte), we want to modify the subject, and inlcude any identification from the case. But ...
Saariko's user avatar
  • 5,610
0 votes
1 answer
3k views

Issue with Recipient Merge Field

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 ...
GroundToCloud's user avatar
0 votes
2 answers
2k views

How to get Metadata for Lightning Email Templates?

Looking to get Metadata for lightning email templates. Here is what I have tried: Retrieving from source the following package.xml: <?xml version="1.0" encoding="UTF-8" ...
S.B.'s user avatar
  • 2,091
0 votes
1 answer
1k views

Issue with Files used in Lightning Email Templates

I'm having an issue with Lightning Email Templates in two sandboxes. Development sandbox Add image to Files. In the files list, the file does not have the [Asset File] tag next to it. Create a ...
Michael Sobczak's user avatar
1 vote
1 answer
3k views

How to add merge fields related to User and Community in Lightning Email Template

I've created a Lightning Email Template where i have to add merge fields related to user and community but there are no such merge fields in merge field picker I want to add {!Community.Url} {!...
Vaishnavi D's user avatar
2 votes
2 answers
2k views

Merge field in Lightning template that is being called from Flow email alert

I have a Classic email template that I call via an email alert in process builder. Because I want a non-letterhead look and need HTML features, I converted the Classic email template to a Lightning ...
Michele Kleinhomer's user avatar
3 votes
1 answer
5k 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. ...
J. Radcliffe's user avatar
0 votes
1 answer
3k 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 ...
Salvation's user avatar
  • 1,189
2 votes
1 answer
440 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....
Sander de Jong's user avatar
0 votes
1 answer
386 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 ...
Garywoo's user avatar
  • 173
2 votes
1 answer
5k 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 ...
compski's user avatar
  • 1,352
0 votes
1 answer
2k 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 ...
user1067017's user avatar
  • 1,017
0 votes
1 answer
890 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? ...
Michele Kleinhomer's user avatar
2 votes
1 answer
2k 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 ...
sanket kumar's user avatar
  • 15.4k
4 votes
2 answers
2k 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 ...
adriancg's user avatar
  • 348
3 votes
1 answer
1k 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 ...
shmuels's user avatar
  • 575
2 votes
1 answer
4k 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 ...
HomerJ's user avatar
  • 893