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.
1,273
questions
-1
votes
1
answer
29
views
Want to send mail to lead custom field
Hi i want to send mail to lead custom field. I am using email template to send the mail. And also i am using settargetobjectId as lead id. Now while creating lead i dont want to add the mail in the ...
0
votes
1
answer
46
views
Email Template Body is null
I am trying to query the custom html template and use it in apex. But the body is coming as blank. Any reason why the Body is returning null.
EmailTemplate et = [SELECT Id, Name, Subject, Body FROM ...
1
vote
1
answer
41
views
How to retrieve all the Public Email Templates where FolderName is 'Public Email Templates'
I have tried using the following query :
SELECT Id, Name, Subject, Folder.Name FROM EmailTemplate WHERE Folder.Name = 'Public Email Templates'
But it doesn't works.
one can query an email template ...
0
votes
1
answer
32
views
Help with aura component that works in standard org but not works in partner portal
I have this custom component that displays a Visualforce page and email templates. In the org it works as it should, but in the partner portal it doesn't give me the same result. It already exists a ...
1
vote
1
answer
76
views
How to resize the image size in salesforce flow text template?
I have created a text template in Salesforce flow and tried to add an image in it to send emails I have added an image and the code generated for it is below,
When I try to see it in the rich text ...
0
votes
1
answer
49
views
How do I use a Custom Setting in a Lightning Email Template?
I would like to use a Custom Setting (or Custom Metadata) as a merge field in my Lightning Email Template, but am getting errors with the suggestions I found using Custom Settings when googling. I ...
0
votes
0
answers
19
views
Survey and SurveyQuestion, plus Email Template, plus Flow - can it work?
We wanted to modify one of the Surveys standard Email Templates. We modified Embed a Question. The template looks great. When I create a flow to use this Template, it can't function because it ...
0
votes
1
answer
25
views
Error while sending email via lightning emaill template through apex
// Now to check contact counts
For(Account acc : accountsMap.values()){
Integer actualContactCount = acc.Contacts.size();
Integer expectedContactCount = Integer.valueOf(acc....
0
votes
1
answer
29
views
have email template which include detail link of my object.when i am getting email its not coming as hyperlink.instead its getting as plain text
classic email template -
<p>Hi {!Receiving_User.Name},</p>
<p>You have been tagged in a chat for claim - {!WOD_2__Claim__c.Name}.</p>
<p><a href=&...
-1
votes
1
answer
37
views
Unable to send Email
Unable to send email using below code:
Getting error:
Error in sendEmailUsingTemplate: SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, We don't recognize the field prefix ...
0
votes
1
answer
25
views
Send email in AfterUpdate of new record using the new record for merge fields
We have a record for which an email needs to be sent, but the sendEmail process is happening in the AfterUpdate of the triggerhandler.
The email template being used is a VF component/HTML one with a ...
0
votes
0
answers
68
views
How to Preserve Formatting in Long Text Field Input for Screen Flows
I have a screen flow that takes in input through a long text field and then inputs it into a text template used for an email. The formatting from the long text field is not preserved for some reason ...
0
votes
1
answer
22
views
Cannot create a package version with Flexipage of type EmailTemplatePage
While creating a 2GP package version via the salesforce CLI, I am receiving the following error:
You don't have the right to create Lightning pages of type EmailTemplatePage.
I made sure that my User ...
1
vote
0
answers
68
views
How to pass parameter from Lightning flow to Lightning Email Template to LWC
I have a requirement to display a list of records in email. Records are constructed from 3 objects. Since it's not possible to use a list in the Lightning template I decided to use LWC in the ...
-1
votes
1
answer
62
views
Add attachment to email template
Is there a way to add a pdf attachment to a classic email template without using visualforce coding?
Thanks
0
votes
0
answers
49
views
Validate Lightning Email template before sending
I have a situation where some email templates contain both:
Merge fields from Contact object
Placeholders for the sales agent to input before sending (contextual values)
Is there any scope where I ...
-1
votes
1
answer
36
views
Bulk upload of email templates
How to upload 100+ email templates doc file to sandbox classic email template folder?
0
votes
1
answer
41
views
Visualforce component not triggering getters
I have a task to create a email template which uses a visualforce component with some tables of data on Leads. The email did not show the tables properly so I put the VF component on a VF page to ...
0
votes
1
answer
56
views
Hiding HTML table of code within Ampscript IF-ELSE Statement - Reduce file size?
I am working on an email template with a large number of modules. If I add these modules within the AmpScript IF-ELSE statement - for eg: Display module 1 table of code within in the If statement and ...
0
votes
0
answers
34
views
Are emails rendered differently when testing email templates vs actually using them?
I have an email template being sent to an email-to-ticket feature of a different system. I can assign the owner of that ticket in that system by including certain text in the body of the email - !!...
1
vote
0
answers
61
views
How to get header and footer images in visualforce email templates
I need to add header and footer images to my visualforce email template. I tried uploading from static resource which doesn't work. I don't have the Documents option in my org. Is there any way I can ...
0
votes
1
answer
49
views
IF statement in HTML Template Giving blank output
Here is the formula I am trying I get the result in the formula field but it turn blank when I am using it in Email template
{!IF(Client_Life_Event__c.Legal_Business_Name__c,
Client_Life_Event__c....
1
vote
0
answers
36
views
Issue while iterating related child records of a Case Object in Visualforce Email Template for Portal users
Requirement - To show the table consists of the child records in Visualforce Email Template for portal users
Design -
We have two Objects having Master-Detail Relationship.
First Object - Parent__c (...
1
vote
0
answers
154
views
Why is ApprovalRequest.Comments appearing as blank for an email template upon initial submission?
I have a standard email template on an opportunity object with {!ApprovalRequest.Comments} as a field I want filled out on the email template. This is sent on the initial approval request. The field ...
0
votes
0
answers
144
views
lightning email template is not showing the merge value of opportunity fields
Lightning email template is not showing the merge value of the opportunity fields
I have created the lightning email template for sending email, the template Id I'm trying to use in my flow to trigger ...
1
vote
1
answer
276
views
Email Template Folder not found error while creating 2GP package version
I am trying to create 2GP managed package via Salesforce CLI using sfdx commands however when I run sfdx force:package:version:create command I get the following errors related to the email template ...
0
votes
1
answer
235
views
System.EmailException: SendEmail failed. We don't recognize the field prefix Contract
I am getting the error when i execute the sendEmailContractDetailsToOwner() method from ContractsService class. My email template has couple of merge fields such {{{Contract.ContractNumber}}}
Domain ...
0
votes
0
answers
130
views
Pass Map from Batch Apex to VisualForce email template and iterate on it
I have a Batch Job called ContractExpirationNotificationJob and it identifies expiring contracts and sends the owners a list of expiring contract records by email.
Currently, I am using a method ...
0
votes
0
answers
31
views
BounceReason field update in the Salesforce on IER object
I want to update the BounceReason field from Marketing Cloud to Salesforce Sales Cloud on Individual Email Result object. Is it possible in anyway to update the Bounce_Reason_C field on the Individual ...
0
votes
0
answers
332
views
Error occured in Recipient ID in flow when trying to use the template id to send email via flow
An Error Occurred with Your "test flow" Flow
You’ve received this email because an error occurred while your "test flow nvaga" flow was running.
Error element ...
0
votes
1
answer
53
views
Display contents of a Content Note on a Classic Task Email Template using Task WhoId (relatedTo)
I am trying to display the values of the Content Note object's content field that is related to a lead record and I want to display those values on a task email. Thanks.
We use AWS Python Lambda ...
0
votes
1
answer
34
views
Can I capture the Flow or workflow process id or name in an email alert?
I use the same email template for more than one alert or process.
Is it possible to capture the id or name of the triggering Flow, workflow rule, or process definition in the email message? This would ...
0
votes
0
answers
104
views
Formula in Classic Email Template ISBLANK
I am trying to return custom text when a field is blank in my record using a classic email template. I am pulling my hair out. I have searched high and low with no luck. I am using this formula in the ...
0
votes
1
answer
38
views
Dynamically adding multiple log file URLs inside a classic email template for a Salesforce Object in Salesforce
We have to have multiple URLs from a log file inserted dynamically into the following Web Intelligence classic email template for the Task object. For example here is the mockup for the email ...
-1
votes
1
answer
460
views
Adding if conditional logic in Salesforce Lightning HTML email templates
need to add the case description in the lightning email template if the case origin is "Website".
As it's currently not possible to use conditional statemements in email template in ...
0
votes
0
answers
53
views
Data is not showing in email from Synchronize DE via AMPScript
I have prepared an personalized email with AMPScript block in the email and now my some of my data attribute is not showing in the email. I am trying to get this data via lookup function of the ...
0
votes
0
answers
426
views
Flow Error message: Unable to process the email template...Argument cannot be null
Can anyone help with this Flow error message:
Error Occurred:
We were unable to process the email template. Error Message: core.email.template.TemplateRenderingException: Argument cannot be null.
It ...
0
votes
0
answers
118
views
Salesforce CPQ - Quote Lines, Quote Line Groups, and MDQ - Visualforce Approval Email Template
Our team is looking to launch MDQ for our products in CPQ, however while this is handled seamlessly on the Quote Template end, I am struggling to make an Approval Email Template that will adequately ...
0
votes
0
answers
47
views
Outlook button to update/delete a record in salesforce
The use case is - A subscriber (contact) is sent an email regarding a specific product to which he's subscribed to. At the end of the email is "Unsubscribe" button through which he can ...
0
votes
0
answers
33
views
Send only a single email for multiple records with similar email address in salesforce marketing cloud [duplicate]
I have a data extension like below. Now when sending emails to the list it sends multiple emails to a single subscriber based on the record. As an example as - [email protected]
is two times in the ...
0
votes
1
answer
51
views
LWC wont save after clearing out none required custom fields (lightningStatic__Email)
Hi I'm pretty new to the salesforce platform so any help would be appreciated. I am trying to create custom email template components, but when I clear out any data from a custom field it wont save ...
0
votes
0
answers
99
views
Email Template Content Block Area - Overwrite CSS
I am working on revamping email templates in Marketing Cloud for non-technical marketers to use. I am running into an issue/haven't found a solution for overwriting CSS in content areas that a user ...
0
votes
0
answers
29
views
Flow to Look Up multple Account records, copy field from each record to clipboard
I am hoping to find a way that I can achieve the following:
Users are composing an email to a client. They are providing information to the client about one or several Accounts which serve as resource ...
0
votes
2
answers
212
views
Can we pass email body in API payload for sending email in salesforce marketing cloud?
I am exploring Salesforce marketing cloud's email APIs but am unable to find any email send API that allows sending email body (HTML content) in the send API like Braze (braze api). Is there any ...
0
votes
0
answers
72
views
Getting Error on Subscriber Preview with AMPScript Code in the email
I am getting an error on the subscriber preview section after testing the AMPScript with test DE records in Marketing Cloud.
Below is my code:
%%[
set @Phone = [Phone]
set @Name = [First Name]
...
0
votes
0
answers
146
views
Using Content Block of type Layout in a custom HTML template for SFMC
I am working on an email template that uses content blocks. The content blocks are retrieve using some ampscript that loops through a JSON string of contentBlocksIDs.
I also wanted to use content ...
-2
votes
1
answer
51
views
Getting Error on Fetching Data from two different DE into Email Template in SFMC
I am trying to get the data from two different Data extensions DE A has columns fname, Lname, Contact ID, Email, Phone, Account ID and DE B which is Salesforce object DE has Account ID, Owner ID, ...
0
votes
2
answers
2k
views
Marketing Cloud - Send email via API
I am completely new to salesforce.
I am developing an application that is supposed at some point to send emails through salesforce marketing cloud, using their APIs.
I've found about triggers and ...
0
votes
1
answer
196
views
Preheader doesn't display when arriving in Inbox
I've set up a multiple communication journey which is sending around 10 emails.
For 3 emails out of 10, the preheader is being displayed normally when I receive it in the inbox but for other emails, ...
0
votes
1
answer
186
views
Updating Lightning EmailTemplates using REST api
I'm trying to replace links within email templates created by the lightning builder programmatically.
I've managed to get the sobject ID of an email template using the REST api, but when I try to ...