Questions tagged [email-template]

Salesforce email templates come in a variety of shapes and sizes, ranging from Text to Visualforce. These email templates can be used through Salesforce through approval processes, workflows, etc to send email to users.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

{!ApprovalRequest.Comments} in lightning email templates

i am trying to transform all hte classic email template that i have to lightning email templates, and i can't figure out how to change {!ApprovalRequest.Comments} i've tried {{{ApprovalRequest....
-1 votes
0 answers
15 views

Setting Multiple Recipients on Case Email Reply?

Is there a way to set multiple recipient email addresses on a case email reply from an end-user in the template or other setting? Scenario: Our support team creates a case and an email (via email ...
  • 47
0 votes
1 answer
50 views

Preheader Inbox View

Is it possible to display the preheader text in the Inbox view without adding a preheader content block on top of the email template?
-1 votes
0 answers
27 views

Email To Salesforce not linking email to record when using vf template

We are facing an issue related to Email to Salesforce. We wanted to relate the email to the Order record. When we are using the simple email template(without css) containing the ref id in the email ...
1 vote
0 answers
52 views

How to make HML Email Template have dynamic Base URL

We have an HML email template using the {{{}}} syntax to provide a link to a record. Unfortunately, this syntax hard codes the base URL within the Email Template XML. For example: <a href="...
0 votes
0 answers
27 views

How to set Record Id in flow action?

I am trying to send the email, using email alert but problem is I am facing issue with Record Id (as pic 1). Implementation screenshot is available in pic 2:
-1 votes
1 answer
19 views

Error: Unknown property 'VisualforceArrayList.URL_to_Corrective_Action__c'

I am receiving this error when trying to add a field to a VF template. Here is what my code looks like: Item Reference: {!relatedto.Corrective_Actions__r.URL_to_Corrective_Action__c} The field I am ...
0 votes
1 answer
38 views

email does not return ampscript fields from data extension

Good morning, I am building a journey in which the customer will receive an email communication according to the company group he is registered with during the test and preview of the email studio ...
-1 votes
1 answer
42 views

Where is the From address set for this batch class?

Our site has a scheduled batch job to send a templated mailing. It uses one of our Org Wide Addresses as the From. Please notice that the existing code does not have a setOrgWideEmailAddressId() ...
  • 327
0 votes
0 answers
28 views

How to get the CreatedByName field in the lightning email template [duplicate]

In a lightning Email Templated record CreatedBy.Name is not available as a merge field (the available field is CreatedBy.ID). Apart from creating a new formula field that can be hidden from the page ...
0 votes
0 answers
30 views

Email Preheader Text Dislay - Inbox View

Is it possible to display the preheader text in the inbox view without adding a preheader content block on top of the email template?
0 votes
0 answers
35 views

White line between stacked tables in Gmail App Android 11

I have a table with an image and below it a table with red background. In Gmail Android 11 there is a 1px white line between the two tables that I can't get rid of. There isn't any margin or padding ...
0 votes
1 answer
41 views

Email alert through flow for particular profile users

Hi all I have a flow and if a particular checkbox is checked I have set an email alert to fire. Now I have to restrict the email to be sent to a particular profile's users. I have created an apex ...
  • 23
0 votes
1 answer
37 views

Where is the emailID?

I want to create an email and send a test email using API. I have been following this tutorial - https://gortonington.com/email-send-preview-and-test-sends-via-rest-api/ In order to send a test email ...
  • 63
0 votes
0 answers
62 views

Desktop and mobile hero image for email

I am looking to build a template in Exacttarget and know how to display 2 different hero images based on desktop and mobile for regular HTML but have never set one up in exacttarget. This will be on a ...
0 votes
0 answers
88 views

Email Template Editor in LWC

How can i add editor for email template HtmlValue in LWC? I've tried to use lightning-input-rich-text, but it is a bad editing tool. I only need the function to change the text, not the style of ...
0 votes
0 answers
24 views

"You can’t edit this Email Template ..." during update unlocked package

I created two versions of my package. In the first version, I added the Email Template LWC MyTemplate_1668678338227. Next, I created a second version with no changes. Right now, when I try to install ...
  • 103
0 votes
0 answers
34 views

How to efficiently package email templates into 2GP

What is the best way to package email templates into managed packages, and allow to use them by admin (not necessarily by the one that installed the package) just after installing it? I was thinking ...
  • 113
0 votes
0 answers
24 views

Moving Emails Between Folders

If I update an email template in one folder and then move it to a different folder, will it affect any automation or triggered sends that are associated with that email? Example: I have a Welcome ...
0 votes
0 answers
98 views

Lightning Email Template deploy results in 'use the HTML Value field instead of the Email Body field.'

I have an email template that uses a LWC. It works in a dev org. Trying to deploy it into another org results in the error 'For Lightning templates, use the HTML Value field instead of the Email Body ...
0 votes
1 answer
153 views

Can't use LWC in Email Template when using @wire method

I'm trying to use a lightning web component in an email template. I'd like to be able to set variables based on the state of the related object. As soon as I add reference to @wire, the email template ...
-1 votes
1 answer
29 views

condtionally render the content in vf pag email template in salesforce

Depending upon account type( personal, commercial) need to render welcome message in VF page with if condition. relatedToType="Account" for commercial account {!relatedTo.Name}, for personal ...
0 votes
0 answers
70 views

How to show preview of visual force email template (which has a table) in LWC on a button click

My requirement: From a list of task records, the user can choose records of his choice, and this list of selected records should be passed to an email template and shown as a table in the email ...
0 votes
0 answers
24 views

Preview Text in an ExactTarget email template

How do I set the Preview Text in an ExactTarget email template which shows up in gmail's preview pane ?
  • 111
0 votes
1 answer
48 views

Is it posbbile to send email in Scratch Org?

today I tried to send email with scratch org in APEX but not success. Although when create scratch I added these lines to file project-scratch-def.json like below: "emailAdministrationSettings&...
  • 23
0 votes
0 answers
30 views

Salesforce Content Document(png) tagged in CLassic email template, rendering a broken image while delivering email (only in first delivery)

I'am stuck for the last few days with embedding a content doc into classic email template. Am creating a content document in png format, and storing the doc id in this field 'ContentDocumentid__c'. ...
0 votes
3 answers
192 views

Multiple If Statements for a merge field for a HTML Email Template

I am trying to create a conditional formula for a merge field for a HTML Email Template with the following logic; IF both ICMS ID and Portal ID are present then only show ICMS ID OR IF only ICMS ID is ...
  • 19
0 votes
0 answers
40 views

Displaying Year in the footer of a custom salesforce email template

Question is: How do you display the current year in a Salesforce classic HTML email template? This would be where the copywrite section with the 2022 goes. This way it doesn't have to be manually ...
0 votes
0 answers
35 views

Copy and paste images into Publisher Email

Using the email publisher on the Work Order record. A user is reporting that they used to be able to copy and paste (ctrl + C/+V) an image into a templated email. The image appears in the email in ...
0 votes
0 answers
85 views

How could i retrieve all email templates to VSC using sfdx or manifest?

I need to retrieve all email templates to my visual studio code to apply a general replacement on the text of those templates. I give a try to the solutions provided at those links retrieve all email ...
  • 1
1 vote
1 answer
52 views

How email templates should be stored in the repository?

I have a file "default" which has: applications aura classes contentassets etc I added a new directory "EmailTemplate" and I added files "email0.email" and "email0....
-1 votes
1 answer
175 views

How to write a formula where if the date field is not blank, to populate with text

I'm creating an email template that contains a formula where, if our date field, 'DocuSign Sent', is not blank, it should populate the date. But if it is blank, it should populate this text, "No ...
  • 1
0 votes
0 answers
68 views

Case Emails: Replies sent to a case notification mail creates a new case instead of adding it as case comment

I'm sending out a case notification mail (which is NOT from an "email to case" email address) to a user. When the user replies to that mail, instead adding that reply to the case as comment, ...
  • 11
0 votes
0 answers
25 views

NOT(Contains(TextField)) keyword in Email Templates

I have an issue when i am trying to use NOT(Contains(TextField)) keyword in Custom email templates with multiple conditions my code: {!IF(OR(NOT(CONTAINS(Case.Engine__c,'AB')),NOT(CONTAINS(Case....
  • 1
0 votes
0 answers
85 views

How to get the Digital Experience Site URL in lightning email template based on the environment

The URL of the Digital Experience Site in Sandbox1 is https://something--devenv.sandbox.my.site.com/s/login/ The URL of the Digital Experience Site in Sandbox2 is https://something--qaenv.sandbox.my....
1 vote
0 answers
51 views

"ExecutionException: List index out of bounds: 0" while sending email from Apex using email template with Custom Object merged fields

Here is the code- public static void sendEmailToUser(String email, String emailTemplateNameText, String selectedRecordId){ String emailTemplateName = '%' + emailTemplateNameText + '%'; ...
  • 45
1 vote
0 answers
117 views

Salesforce Sandbox Org is not sending out emailtemplates

I am currently working on an org where I am currently having trouble sending out email templates. In the send test for the email template, I have checked the sample send test when choosing to verify a ...
  • 11
0 votes
0 answers
60 views

How to update DE containing millions of records without primary key field

I tried updating large batch of records(millions of records), but i couldn't.What would be the mistake in this code? var props = [ { "Name": "JOBID", ...
  • 11
0 votes
0 answers
34 views

custom smtp headers in email template

I need to create an email template that sets a custom smtp header to the record id so that when the email is replied to I can use an InboundEmailHandler to process the email and update the record ...
0 votes
0 answers
43 views

Using IF or CASE in mail-templates

I am struggling with the usage of conditions in mail-templates. I try to create gender-specific German mail-salutations depending on the value "Recipient.Salutation_c", but it doesn't work. ...
0 votes
0 answers
105 views

How to add link to a related list in visualforce email template?

I want to send a link in my vf email template that opens up the record's approval history related list. Inside the template, I've tried {!LEFT($Api.Partner_Server_URL_140,FIND('.com',$Api....
  • 313
-1 votes
1 answer
172 views

Will _Subscribers Dataview retrieve only recent 6 months data?

I need to retrieve 1 year data from parent Bu i used the following query. Select EmailAddress from _Subscribers But i got only 6 months data
  • 11
0 votes
1 answer
97 views

Flow to send email to a custom object's email field

I'm trying to build a flow that sends an email (from a template) to an email field within a custom object. The custom object is PDT__c The custom object's email field is Email__c I have an email ...
0 votes
1 answer
319 views

How to pull Hard bounce Emails from Data extension to exclude it from sending Emails

This is my Query. But its not working as expected.Count of Hard bounce list retrieved using Query is different from tracking report hard bounce list : select E.[Email] from Test_DE E inner join ...
  • 11
0 votes
1 answer
155 views

Email template : Get instance url

I have an email template that has some static links (URL) that points to our instance of Salesforce. Is there a way to get the instance URL dynamically? This template is not being called from Apex ...
1 vote
1 answer
3k views

Do not see "Classic Email Template" option in Setup

I have tried to find Classic Email Template in Setup in my Developer Organization, However I could not find it. I logged in another Dev org and I see it. I do not see it neither in Lightning nor in ...
2 votes
1 answer
3k views

System Administrator can't access Email Templates

I have a user with the system administrator profile, and suddenly it can't see anything related to email templates in Setup/Quick Search. The user was able to use and modify them previously (just ...
0 votes
1 answer
155 views

How to capture email click activity into custom data extension in Journey builder

I am sending emails to users using journey builder. These emails have yes or no buttons. I want to send email based on these buttons. That means when click yes send abc email & when click no send ...
  • 347
0 votes
1 answer
126 views

VF component email template to send list of opportunities against each owner. The templates loads the only last value of list

//VF Component <apex:repeat value="{!oppUserList}" var="opp"> <tr> <td> {!opp.Name} </td> </...
  • 15
1 vote
1 answer
40 views

can I pull in just the first name of an approver in an approval process into an email template?

I have an email template used in an approval process for the first approver/entry. the users want it to just be addressed to the first name, not the full name of the approver but I don't see any way ...
  • 385

1
2 3 4 5
25