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
0answers
13 views

I have to send an email with details of the case (when the case is created) to a user that has a custome field set as “commerce admin”

I have already created the workflow rule, the email alert and the email template. I already checked by email logs if they had been sent and it appears as sent but in my mailbox I do not receive ...
0
votes
1answer
13 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
28 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
29 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
19 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
19 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
21 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
12 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
50 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
17 views

hyperlink in predefined values of a salesforce action

I have an Action where I want to put a hyperlink in the predefined field value of HTML Body. This is what I have tried till now but it is always throwing syntax error. myfield__c is an URL type field. ...
0
votes
0answers
16 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
13 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
33 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 ...
-2
votes
0answers
30 views

Emailtemplate link expiration

I have a requirement as below. I have to send an email template to contacts with a link embedded in it.that link should get expired after 24 hrs.how to make a link inactive after 24 hrs of time.could ...
0
votes
0answers
7 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
12 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
22 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
28 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
18 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
24 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
25 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
24 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
24 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
13 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
15 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 ...
0
votes
1answer
45 views

Access child object fields on custom classic email templates

In my use case, I have 2 objects called 'Object A' and 'Object B'. 'Object B' contains a master-detail relationship to Object A. I have an email alert which has been set up on 'Object A'. In the ...
1
vote
1answer
271 views

This template doesn't support SML merge fields

I am working with an HTML template that includes <message:emailTemplate> and <messaging:HTMLEmailBody>. We are currently using Lighting experiences so the error is saying This template ...
0
votes
0answers
32 views

Delete or change on behalf from mail

I know it has been answered but there are different opinions about how to do it in a community. Using apex is clear (if i understood correctly): Messaging.SingleEmailMessage mail = new Messaging....
0
votes
1answer
19 views

Get last created related object data in Visualforce Email Template

I have a Visualforce Email Template which is as follows <messaging:emailTemplate recipientType="Contact" relatedToType="Case" subject="Test"> ... <apex:...
0
votes
0answers
22 views

From Field blank while sending email from record

One of my users is trying to send an email from a record page. but while sending the email from is blank and it's grayed out. The user is not able to send any email because of this. I know by adding ...
0
votes
1answer
32 views

Email Journey to support segmentation, multiple storefront branding themes?

I am currently trying to integrate Marketing Cloud with our website repository to set up automated Abandoned Cart emails. I am trying to figure out if it's possible to add customized data alongside ...
0
votes
1answer
26 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
0answers
28 views

Updating The Email Change Verification URL

Am looking to update the verification link that is sent out when a user changes their email on our community (VF) storefront. I have checked the email templates and see the merge field, but cannot ...
0
votes
1answer
44 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
0answers
47 views

Not able to send emails as Site Guest users, using Messaging Class

The below code runs fine with Salesforce internal users, but throws an exception while run by Site Guest User. List<Messaging.SingleEmailMessage > msgList = new List<Messaging....
0
votes
1answer
51 views

Update failed. First exception on row 0 with id **********; first error: TEMPLATE_NOT_FOUND, [duplicate]

I am facing the below error Exception Details: Update failed. First exception on row 0 with id *************; first error: TEMPLATE_NOT_FOUND, The record couldn't be saved because it triggered an ...
0
votes
0answers
18 views

How to disable WAC query string on a specific link, but not disable regular link tracking?

Setting a variable with the complete A tag does make the WAC ignore the link, but it also gets ignored by the regular link tracking function. Is there a way to make a link be ignored by WAC, but not ...
0
votes
0answers
23 views

How to have the browser link generated automatically to view the email in a browser?

As of now, every time I make an email template in Salesforce, I need to manually make a browser url link to view the email also in a browser. Is it possible in Salesforce to somehow have the browser ...
1
vote
1answer
43 views

Community Welcome Email Translation in 8 other languages

I am using classic Email Template with html version to send the welcome email. For the translation I am using custom label {!$label.label_name}. If I select the language french in community the email ...
0
votes
1answer
34 views

Get Data From Email Template Merge fields in Lightning Application

I have created one Lightning application which has form with lightning checkboxes and lightning input. The application has salesOrderId which is field of SBQQ__Quote__c(Quote) object. I have Use ...
0
votes
0answers
11 views

Hiding sections of email component

There is a requirement where the agents will be using service console to manage the case records. To support the requirement, I have added the Chatter Publisher component in the Lightning page. I have ...
0
votes
1answer
15 views

How can I show a list of objects that have “Review” as the parent object in Visualforce email template?

I am trying to create an email where it will show the recipient a list of the "Review Accounts" associated with the "Review" object. Where "Review Accounts" is a Child ...
0
votes
1answer
45 views

How to use SSJS in side the email template content?

I have try to use SSJS and AMP scripts using microsite urls its successfully working. I am struck when I use directly SSJS and AMP script in inside email template. Using SSJS how to retrieve, insert, ...

1
2 3 4 5
23