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
1
vote
1answer
39 views

sending html email from APEX using templates

When I am doing a test send using the data in the quote object record, I am getting an html formatted email with values. In the doc: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/...
0
votes
1answer
9 views

Create "Draft" Email In Pardot API

I have a tool that builds emails and can send through various ESPs like Pardot (sand Salesforce Marketing Cloud). I see the API endpoints for sending emails (https://developer.salesforce.com/docs/...
0
votes
0answers
31 views

Sending Lightning Email Template from Apex code

I'm trying to send an Lightning Email Template via APEX, have not been able to do so. I get no exception or anything, just no email gets sends. With various System.debug() commands I'm able to ...
0
votes
1answer
18 views

classic email template - email recipients

a classic email template is currently being sent out to one user every time a 'funds request' is made. I would like to add another user to also receive this email, but I cant find where to add the ...
0
votes
0answers
11 views

Display Visualforce Email Template Body with VF Component in LWC

Before sending out an email I have to preview the body of a Visualforce email template in 'lightning-input-rich-text' component in LWC. The VF email template has a VF component inside it to generate ...
0
votes
0answers
21 views

how to unlock a classic email template to edit

I'm trying to edit a classic email template on a custom object but it gives me this error message: This email template content can't be modified. And I can see a lock on the email template. However, ...
0
votes
0answers
10 views

How to add nested tags to Calendar Campaign

In Email Studio, you can assign nested tags to an email. In the Campaigns Overview, you can create a campaign and you can assign an email to that campaign. You can also assign tags to a campaign. But ...
1
vote
0answers
22 views

Multiple If condition inside classic HTML Email template

In classic email template I am trying to put multiple if condition for two different fields and that two fields are formula fields The fields names are X1Annual_Meeting__c X1Proxy_Other__c if ...
0
votes
0answers
15 views

Send email from flow and record in email activity

I created a button connected to a flow that send an email template to my client. I would like that to be recorded in the Email Activity so when the client open the email I see it was open. I added the ...
0
votes
0answers
10 views

Unable to find email attachment and email template icon at the botton of email tab from case feeds

I have created a quick action to send email. I have added that to my case feeds. On click of email action from case feeds I am not able to find email attachment and email template icons at the bottom. ...
0
votes
0answers
7 views

Attach an Email to a Case using a Work Order Line Item Template

I am trying to attach an email sent out using a Work Order Line Item email Template to the Parent Case. I'm using the Messaging.SingleEmailMessage to send the message. If I use the WOLI in the WhatId ...
0
votes
0answers
20 views

Splitting a single DE value into multiple variables using IndexOf() and Substring() to print in multiple email <td>'s [duplicate]

I'm struggling to figure out the best approach to split a single DE value separated by a pipe delimiter into multiple variables. The value looks like this: This is some text| This is some more text| ...
0
votes
0answers
18 views

Classic Email Template with VF Page

I have a VF page created with resources and css in it. I would like to create a classic Email template that poke that VF page and include it in the body of my email.I tried to copy the content of my ...
1
vote
1answer
37 views

Feeding Subject Line to Title for View as Webpage

I'm trying to use ampscript to feed the subject line to the title tag on the webpage that loads when clicking on VAWP. -I have the title tag set as <title>%%=v(@Subject_Line)=%%</title> in ...
-1
votes
1answer
19 views

pre-populated emails [closed]

Please see the initial sketch below. Can you please tell me if this is possible in Salesforce, or if there is a better way of doing this? Would I have to use Outlook? or can this be done directly ...
1
vote
0answers
29 views

System.ResetPasswordWithEmailTemplate not sending context to the VF Email Template

in here issue details: Context: In our system we are sending Welcome Emails using the method System.resetPasswordWithEmailTemplate to customers in our Experience Cloud (community). When we tried to ...
1
vote
1answer
24 views

Record page link is not appearing in the email

I am sending out an email from my code after a certain action, and I am trying to add the record link to it. But in the email that is being sent out, the link of the record page is not appearing or ...
0
votes
1answer
28 views

how to have buttons and social media images in salesforce email template

Hi, I have a requirement to create email template which includes company logo as header, email content , button, social media icons and other links and it has to be used in customer community. Looks ...
1
vote
1answer
43 views

Is it possible to remove extra html added when using content blocks in Marketing cloud?

I have an email that has to be sent, I am a developer, but not an MC consultant The problem is that when we create an email message & paste our email html code, everything works fine When we ...
0
votes
1answer
31 views

Single email messaging class functions [closed]

Is there any good resource where its explained clearly about the below functions of Single Email Messaging class and their usage: renderStoredEmailTemplate setWhatId setTargetObjectId setTemplateId ...
0
votes
1answer
29 views

Initial expression is of incorrect type, expected: Messaging.SingleEmailMessage but was: List<Messaging.SingleEmailMessage>

The below code gave me his error: Initial expression is of incorrect type, expected: Messaging.SingleEmailMessage but was: List<Messaging.SingleEmailMessage> How do I rectify this? Code: public ...
0
votes
0answers
45 views

HTML Visualforce Email Template for custom object lookup fields

I have a custom object called Class__c and Contact(Participant__c) is lookup field. I have set up an email alert every time a class button is clicked. But I'm unable to show the a lookup field value ...
0
votes
1answer
24 views

How to send financial force sales invoice with attachment [closed]

I've been trying to send the financial force email that from Apex that is called from a Process. As I understand the invoice should be attached when the email template is used with the WhatID set (...
1
vote
0answers
27 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
40 views

2021 - Unable to use custom fonts for emails in Marketing Cloud

I've been trying to import a custom font for MC emails. I have followed the steps from this similar discussion: Custom font in Email content blocks I have tried both ways - using SFTP and ContentBlock,...
0
votes
1answer
27 views

(How) can I create an email template which digests multiple instances of an SObject?

Let's say I have a custom SObject MyObject__c with a custom text field Message__c. Periodically, I want to send out an email which will collect all instances of MyObject__c which have the same value ...
0
votes
1answer
92 views

Remove duplicates in Journey Builder

I was wondering if there is a way to remove duplicates in Journey Builder? I'm looking at creating a welcome campaign via Journey Builder. Currently I have within my welcome email AMPscript which ...
0
votes
1answer
34 views

AMPscript for adding the Order Number to an email subject

I am trying to add the order number to an email subject and I don't know-how. Plus I am really new to the AMPscript world. I want my email subject to be like: ''Your #OrderID is on the go'' for the ...
0
votes
1answer
19 views

VisualForce Email Template - Error: Syntax error If Condition

Getting Error: Syntax error when i tried to add the below condition in Visual-force Email Template with dynamic variable {!IF(recipient.RecordType.Name != 'Guardian',{!relatedTo.Name__c}, {!relatedTo....
0
votes
1answer
32 views

Details on JobContentBlock / Snapshotting

Recently i had to deal with a duplicate key error which was caused by a email activity inside a journey that somehow made me question a whole approach i have set up for templates and email across a ...
1
vote
0answers
30 views

Salesforce Email Reply BCCs

My client is looking to remove the auto BCC on Case Reply emails: I can do this by updating the EmailPreferencesAutoBcc field on the user record for the existing Users but how do I prevent this from ...
0
votes
1answer
26 views

Webservice callout in Apex component used in EmailTemplate thrws Programmer Error: transaction committed or rolled back while performing api operation

I have an email template which I need to build using many information , so I have used apex component <c:EmailTemplateComp ObjectID="{!relatedTo.Id}" show_url="false"></c:...
1
vote
1answer
49 views

How to create HTML email template for setup audit trail

I want to implement one functionality where batch class will send the audit trail data in the html body format to the specific recepient. I was trying to create the email template for setup audit ...
0
votes
0answers
66 views

Combine global variables and custom labels in email templates

I am trying to dynamically place {!$Network.NetworkUrlForUserEmails} in a custom label for an email template. I want to confirm if these two hypothetical solutions are possible: 1. Include global ...
0
votes
0answers
11 views

Not sure where the approval Email is getting triggered from!

I recently recieved a req to modify the template of Email being triggered by an approval process. Upon looking I donot find any such Email template in the org, and there is no Email Alert in the ...
0
votes
1answer
26 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
51 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
66 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
11 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
48 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
42 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
1answer
40 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
100 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
39 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
32 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
55 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
19 views

HTML Card are not working in visualforce Email template

i have two questions Q1). I create visualforce email template using the card for designing. code for card <div style="width :auto;overflow:auto; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);...
0
votes
0answers
223 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
513 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
156 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 (...

1
2 3 4 5
24