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
1answer
16 views

How to compare the timestamp in ampScript to check if the timestamp is less than 24 hours?

I can fetch the value of timestamp from the data extension using ampScript in a mail. (Example :6/14/2021 12:00:00 AM) But now I want to compare this timestamp within the email i,e I want to check if ...
0
votes
1answer
20 views

use instanceof keyword in a visualforce page

Im trying to use the instanceof keyword in a visualforce template. I would like to pull the MobilePhone field from the Related Owner record. This works when accessed in apex but is not working in the ...
0
votes
0answers
23 views

Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER from an external app

I am getting the following error when a record is being created from an external app Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, This record cannot be saved due ...
0
votes
0answers
25 views

Getting the SSJS value from a for loop and assign it a ampscript variable

I have a requirement, I need to encrypt a data field value from the behavioral trigger Abandoned cart and after extracting the JSON body, I have to use the product information in the email template. ...
0
votes
2answers
34 views

Combining multiple rows of data into one email - Marketing Cloud

I'm having an issue trying to combine multiple rows into an email. As an example, I want to take the below data (Policy Data) and combine data where the policy number is the same and display that ...
0
votes
0answers
8 views

Previewing Survey Emails

I am sending survey email to Lead automatically via process builder. The template is lightning template connected to Survey Question object. Is there any way to preview this email on lead record ...
0
votes
0answers
22 views

mail.setTemplateId() not working?

In the snippet below templateID can be queried and set active. However the template does not show in the resulting email. If instead, I use mail.setHtmlBody() it works fine. Any ideas why ...
0
votes
0answers
20 views

{!Community} merge fields using HML in lightning email template

I'm working with custom lightning email templates for Community. Now I'm trying to merge Community fields in forgot password template. How can I add Community merge fields using HML syntax?
0
votes
0answers
39 views

I have a link lets say “https://vidooly.my.salesforce.com” and after that link i want to add the case id in the email template. How can i achieve that [closed]

I have a link lets say "https://vidooly.my.salesforce.com" and that's my SSO link and after that link I want to add the case id in the email template. How can I achieve that? so that when I ...
0
votes
1answer
38 views

Email is displaying user who deactivated account info rather than the user record that is being deactivated

I am sending email to single email address, when users are deactivated through apex. Below is my send email method public void sendMail(List<user> Users, string emailTemplateName, string address)...
1
vote
1answer
85 views

Apex Email CPU Limit

I am facing Too many SOQL Error. Reason: Using "renderStoredEmailTemplate" method inside for loop that counts against SOQL query for every iteration. global class FlowInput { @...
0
votes
0answers
26 views

Merge fields are not displaying on the email body once the template is selected

I have a Email custom page and everything seems working fine but when we select an template the merge fields we use in the template are not populating as expected but {!Contact.Name} is working fine ...
0
votes
1answer
21 views

Add classic / Lightning name to template folders during selection of email template

When a user searches for an email template while setting up the E-Mail send option, I want to add a clarification to the user showing if folders and templates are being pulled from classic or ...
0
votes
0answers
30 views

HTML email template not working while sending mail through apex

I am trying to send an html email template body in the mail from apex code by using messaging.renderStoredEmailTemplate method but it is sending plain text not html body. Here is the code : ...
0
votes
0answers
21 views

Guest User Cannot Send VF Email Template While Having Access to Object's Fields

I have a guest profile triggering a workflow rule/email alert when they click "Save Information" button on a public portal. If I log in as myself (internal user) the flow works and I get the ...
5
votes
1answer
64 views

1px white line between content blocks in Outlook

I have two content blocks in an email in Marketing Cloud. No matter what I do, there is a 1px white line between them on Outlook 2019 and Outlook Office 365 on Windows. The white line does not appear ...
0
votes
0answers
19 views

How to use a Record-Triggered Flow to Activate an Email Alert that holds a Visual Force Email

I have a record triggered flow that will activate an email alert containing a visual force email template that has fields being prepopulated ({!relatedTo.field__c}) and conditionally shown text (...
0
votes
0answers
21 views

“Send to a List” option is not available on Survey Builder

I m exploring Salesforce Out of box Survey capabilities, where one of the functionality is to send survey invitation to list of contacts/users/leads from Survey builder. As per Salesforce help ...
0
votes
1answer
40 views

HyperLink in record triggered flow

I have requirement to append contact link as url in email action in record trigger flow I have used Custom label stored as base url like: test.salesforce.com Created formula: {!$Label.Base_Url}&{...
0
votes
0answers
7 views

Add users Email Signature default while composing email

I need to add the logged-in user's signature while composing an email in salesforce. How can I do this? Also currently for each user, we have created separate signatures in the email template, which ...
0
votes
1answer
17 views

Approval Process : what if the Approver misspells the Approval/rejection word?

When submitting for approval, there’s an email going to the next approver. This email should have a key word on 1st line, it can also show the comment the submitter captured when submitting for ...
0
votes
1answer
16 views

Replace Subject fields on Lightning Email Template

I'm having problems with replace() operations of text that I have in Subject of my Email Template. Subject is like: A - B - C My code is: EmailTemplate eTemplate = newEmail.searchForEmailTemplate('...
0
votes
1answer
34 views

Classic Email Template (Visualforce) Overwrites Link, causing it to break

My visualforce email template keeps overwriting my link. The apex:outputLink portion is pulling through a formula field that generates a hyperlink This is what the formula is: SUBSTITUTE("https://...
0
votes
1answer
43 views

How to identify where an Email Template is being used if it's not under Email Alerts/Workflow Rules?

I'm trying to identify where a bunch of Email Templates are being used. I didn't find them under WF Rules/Email Alerts using the Template Name and I think some of them may be referenced through Apex ...
0
votes
0answers
30 views

Subject information duplicates whenever customer replies to email-to-case

I'm working with email-to-case and this request I've been struggling with is that our client did not want the thread id on the subject anymore, so I've only left it on the body instead, but now...and ...
0
votes
1answer
23 views

Lightning Email template Related Entity Types not populating

I'm trying to create an email template in lightning. The Related Entity Type dropdown is only loading Contact and lead, not all of the regular objects.
0
votes
0answers
23 views

How can I get template body [text] in apex class?

Here is my code below: List<Messaging.SingleEmailMessage> allmsg = new List<Messaging.SingleEmailMessage>(); Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); ...
0
votes
0answers
15 views

Multilingual Approval Assignment Email Template

Is it possible to have a multilingual approval assignment email template? Normally to get translatable emails I would use a Visualforce classic email template and leverage the language attribute of ...
2
votes
1answer
52 views

Checking usage of the email templates

I would like to know if it is possible to see in Marketing Cloud the count of emails that are using each email template. This is really useful, for example, when doing a clean-up of the Business Unit.
0
votes
0answers
29 views

Rounded corners for email blocks with SFMC content builder

We have a requirement to apply rounded corners to content blocks in email. Apparently, it's not possible with ootb capabilities. The best solution we came up so far is to create a custom template with ...
0
votes
0answers
15 views

Pass URL for Experience Site into Visualforce Template

I have a flow to send users to an Experience website. The initial set up of their user will happen by an admin on the backend. Then they will send an email to the user requesting them to be sent to a &...
1
vote
1answer
37 views

How do I add a QuoteDocument as an Email Attachment

Hey team I'm attempting to auto send a Quote via Email out to a client, but having issues attaching the QuoteDocement to an email via Apex. When the code runs I get a blank PDF. Thoughts on the below ...
0
votes
0answers
8 views

Dynamic Account Fields on Email Template Subject

Do you know other way to make this Subject of Email Template dynamic instead of using String.replace() method? My current procedure is like this: Classic Email Template: Subject -> New Request to ...
0
votes
0answers
15 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
0answers
25 views

How to show “From Name” in Email Template

I want to show specific From Name in the email template as I have more than one record in the Org wide address. Can anyone help how to do it? Note : I am always getting the current logged in user name ...
0
votes
1answer
48 views

Add logo image to html email template

I have a small (hopefully) issue that I'm not able to find a solution to.I've added a logo to Documents in SF Classic, to use in an html template for when users need to create and send emails from ...
0
votes
0answers
19 views

Dynamic Field from Account in Email Template Subject using APEX?

I have a service in which we send a new updated Account to an external System, and then we generate a pdf for sending to user email. The process is okay, but they problem is that, when created and the ...
0
votes
0answers
11 views

Email template looks too narrow in Outlook

Email template like the below example: looks too narrow for my client. Is there any way to have this showing more wider in the email received? We have tried all email layouts but the one we need is ...
0
votes
0answers
17 views

How to format date in visualforce e-mails? [duplicate]

I have this email template in visualforce and I needed the date in the "Start" and "End" fields to be formatted to something like DD / MM / YY 00:00. Nowadays it appears in this ...
0
votes
0answers
26 views

Require user to use email template?

Is there any declarative way to force the user to use approved email templates and not allow text editing of the email body? My research says no. If not, we'd have to create some type of custom "...
0
votes
0answers
21 views

Is there any restriction to view lightning component in Visualforce email template?

We have a requirement to build a custom visualforce component for VF email template and in that we are trying to display a lightning component. The lightning component is visible when we preview the ...
0
votes
1answer
35 views

Merge fields not populating in email template

I created a classic email template and have merged fields from a custom object called Order (not the native Salesforce Order object). The following merged fields don't seem to work: Order Name: {!...
1
vote
1answer
35 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
19 views

How to use conditionals in an apex: repeat and place a custom link in a visualforce email template?

I am creating a visualforce email template that sends contact data to salespeople. In this email there are two points that I am not able to advance: In the section "Informações sobre o ...
0
votes
0answers
32 views

Creating a new Child Business Unit(BU) in order to given access to shared DE for Email Developer

We have a single Business Unit (BU) for our organisation. We are working with some external agency who design email templates for us. We want to give them access only to 4 Data Extension and not other ...
0
votes
0answers
25 views

Dynamically populate VS Email template in Apex Triggers

I have a custom object created and upon update or create I have to have an email sent out. I am trying to changes values within a VS email template according to the Trigger. I am also doing a small ...
0
votes
0answers
14 views

Add a record link in HTML email body

we are using a Action layout editor to enter a new email from activity component, we want the users to get the predefined value upon creation of email, everything is working except the HTML body, we ...
1
vote
0answers
12 views

Salesforce Enable/Disable some portion of email template

I have a requirement to make some of the portion of a paragraph in an email template editable and other not. Let's say we have a para of 4 lines, I want to allow user to edit only the second line of ...
0
votes
1answer
13 views

Unable to display relatedlist in visual force email template

Hi in the below visualforce code i am unable to display orderItem related list .the custom related list object orderItem is a managed package, to show the related list i have taken the masterdetail ...
0
votes
0answers
20 views

How to add UTM params to a Community Welcome Email (Visualforce)

(Full disclosure: I'm a bit of a n00b with SFDC) I want to add Google Analytics UTM parameters to a button element on our Community (now Experience Cloud) Welcome Email. I moved the template to ...

1
2 3 4 5
23