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
2
votes
1answer
316 views

Email Template {!Receiving_User.Name}

I want to send email to all the users in a public group from initial approval action. How can I refer individual user's name in the email template? I tried {!Receiving_User.field_name} merge field in ...
0
votes
1answer
120 views

Target_User.Link not working

I am trying to use the Workflow target user merge field {!Target_User.Link} but it's not displaying anything. Even though all the other fields work fine. For example : {!Target.User.FirstName} and {!...
5
votes
2answers
232 views

how to build a template based on the user record

I am trying to create a template that reports on the user record details. However I run into an issue when I create an email alert form a workflow that is triggered when a new user record is created. ...
0
votes
1answer
13 views

How to reply to Salesforce approval request emails from a button in the email body? [on hold]

what I'm trying to do is to create two buttons: one for request approval and one for rejection, in the email body itself, that will open a new email with the To: field populated with the approval ...
0
votes
1answer
394 views

Getting all attachments for a record in a visualforce email template

When sending an Email via a Visualforce Email Template, I would like to get all attachments I have for an Opportunity record. I found this page very helpful: Insert Attachment into Visualforce Email ...
0
votes
1answer
19 views

Dynamic static resource in custom visualforce email template

Background I am trying to add a dynamic link in a visualforce email template to download a PDF which is stored as a publicly available Static Resource: <a href="https://x.cs.force.com/site/{!...
0
votes
0answers
28 views

How to attach a dynamic file in a email template?

I'm trying to attach a file to an email templates. This email template will be used in a workflow, so what I need is to send it everytime a condition is met in a opportunity. The file I need to ...
0
votes
0answers
11 views

Will Increasing Email Characters to 131k introduce Lag

Will increasing the Email Characters to 131k introduce lag within the org either in loading the email record page or within other object records?
1
vote
1answer
352 views

Save Template disabled when sending email in Lightning

When I try to send an email, I want to be able that after a proof-read, I do want to save the existing template, not as a new version. Even if I am an administrator I can't save the template. Is ...
5
votes
1answer
4k views

Print AMPscript Variable inside HTML <tag> as attributes

So I am using ExactTarget templates and content areas to build my emails. In my templates I have AMPscript variables defined in the < head > and that will determine how elements in my content areas ...
0
votes
0answers
6 views

Control folder location in “Select Template” popup of email author screen

Is there a way to control which email folder will appear on click of "Select Template" button on the email author page? Right now it opens the last folder user opened. As of today, we have used url ...
0
votes
1answer
3k views

Email alert not working

I am facing a issue in which the emails are not being fired through email alerts.The emails are sent through process builder with no condition.I have also checked Deliverability--->'its All Emails'....
0
votes
0answers
47 views

Error in using Outlook Integration. Error encountered: System.UnexpectedException: Email Template ID: id value of incorrect type: 0

I am using Salesforce Outlook Integration. And I am receiving a bounce back error which says, "554 The apex class Messaging.EmailToSalesforceHandler failed due to: System.UnexpectedException: ...
2
votes
2answers
851 views

How do I pass data to an email via a triggered send?

I'm trying to send a triggered send as is explained here: https://code.exacttarget.com/apis-sdks/fuel-sdks/triggered-sends/triggered-send-send.html#phpsend I'm trying to display content from the web ...
1
vote
1answer
932 views

Preview Email template within Visualforce page, some throw an error

I have a custom page to preview and render Email templates, now i came across that some (not many) templates will exceed the view state of the page ( max 137kb) As I need the function to replace text ...
0
votes
0answers
18 views

Embed a custom component in lightning email template

There are several VF email templates in my org which internally references VF components. These components have custom functionality of querying different objects and preparing a custom result which ...
-1
votes
0answers
15 views

Send email on behalf of the Opportunity owners to the customers using Email class in apex

I am trying to send follow up Emails to customers using apex class. But I want to send from the Opportuniity owner email address. For example - If Opportunity owner is XYZ then email should be going ...
0
votes
0answers
11 views

How i can send Html template with js custom button?

I added custom button from my case object inside, then i sent test mail its work but i want to use Html template, also i want to add my records from html templates for example "Hello Your Account Name ...
1
vote
1answer
21 views

How to add a dynamic value for ordinal #4 in Lookup Function?

I've got 2 Data Extensions. Let's call them A and B In my Journey, I can only easily include the attributes from the Sendable Data Extension (A) that I'm using to trigger the Journey. However, I ...
1
vote
1answer
726 views

Custom Button- Create PDF

How can I create a custom button create pdf to add a Email template? I try to use this example: /_ui/core/email/author/EmailAuthor?p2={!Stock__c.Id}&rtype=00Q&retURL=%2F{!Stock__c.Id} But ...
0
votes
1answer
370 views

Case Assigned Template not getting used when a case is assigned

I'm having a problem with Case Assignment Template. I'm only getting the standard system generated email notification when a case is assigned to me, despite me having an email template specified in ...
0
votes
2answers
560 views

Send Email Notification Before 90 days

Can any one help me out on this? We have a custom object as Contract Role and it has ROLE as a picklist field which has values as "SA" ,"EB","OR" ETC.It has a master detail relationship with Contract....
1
vote
1answer
772 views

How to set multiple “setwhatIds” and “setTargetObjectIds” in salesforce?

How can I set multiple objects Id in targetObjectsIds and WhatIds?? Whenver I tried to do that it gives an error String[] bccAddress = new String[] {'contact@testcompany.com'}; Messaging....
0
votes
1answer
28 views

Visualforce email template can't see data when run in unit test

I currently have a Batchable process that will send emails to some users: global class ExpiryNotificationHandler implements Database.Batchable<sObject> { global System.Iterable<sObject&...
0
votes
1answer
255 views

How to add additional font styles in salesforce marketing cloud email content builder?

I want to add two additional fonts (Roboto & Din) which are not there in existing marketing cloud - content builder for email creation. These two fonts are required to keep things sync with our ...
0
votes
1answer
13 views

is it possible to place repeat block in classic email HTML template?

I am building an email template using HTML and I was wondering if I can place a repeat block in HTML to view a list of rows. I know if I use Visualforce template I can achieve my goal using apex: ...
2
votes
1answer
22 views

Not Able to get fields from controller to Email Template when the mail is sent from scheulder

It would be great if I could get help with the below requirement that I have to achieve. The requirement is that I run a scheduler in a custom object called Project__c. Around 20+ projects pass the ...
0
votes
1answer
519 views

Track which email templates are used on which cases

Our customer service agents are sending emails to customers from cases through the standard "Send an Email" page where they select a template. Often they edit the text before sending. We'd like to ...
0
votes
1answer
366 views

Getting a Document image in a custom HTML template?

I have a custom html template with an image tag like: <img src="{!companyLogo}" /> Then, in my controller that sends emails, I get the body of the custom html email template and replace that ...
0
votes
1answer
358 views

Visualforce button to open EmailTemplate preview in new page causes error

I have a Visualforce page where I allow a user to edit text to add to a VF template and then send it. (I can't use an HTML template as there is an attachment which is built up using data from the ...
0
votes
3answers
452 views

VF Email Template Error - Attempt to de-reference a null object

Hello everyone I am trying to get my visualforce email template to work this component is used on the Opportunity and Contact Objects. Both email templates are showing the Error occurred trying to ...
0
votes
0answers
15 views

How to send an email on custom button click? [JavaScript not working]

I am trying to send an email (from Classic Email Template) on button click with validation and field update. But when I click the button, it does nothing. Can you please help me what's wrong? {!...
1
vote
1answer
426 views

Mass Email Multiple Contacts from Multiple Cases

Any thoughts on a solution for mass emailing, using an email template, multiple case contacts (via contact roles or contact fields) from multiple cases? Each set of case contact role emails would be ...
0
votes
1answer
38 views

Template marketing cloud : I would like to unlock full html, so that i can personnalize my template with class and tables

I used a marketing cloud template and I want to custom it with extra html (to make it renders well on a specific email client). The thing is that when i click on code view > toggle 'show full html'> ...
0
votes
1answer
624 views

Recipient user name through email template

I have created a Email Template and this template has to send to users. I am doing it through apex class. Users is receiving the mail I am using "Dear {!User.Name}". But it is coming with my name ...
2
votes
1answer
429 views

AMPScript, Checking values in a row

Please forgive my beginner level understanding here, I've been thrust into modifying an email that hasn't been touched in a few years, and I've never used AMPScript before. I'll try to keep this ...
0
votes
0answers
14 views

Merge value is not showing up in email send out

I have set up email template using several merge fields, but only fields from {!Account} that are shown in the email body. the email as follow Hello {!Contract.OwnerFullName}, We would like to ...
2
votes
1answer
403 views

SF Communities: Welcome Email not getting populated

I have a scenario where in a 'Welcome Email' needs to be sent a new Community User after the Community User has been created (by converting the Contact to External User). We are using a visual force ...
1
vote
1answer
223 views

Email to Case (Using thread Id)

I am working on email to case. My requirement is whenever a user is sending mail from outside to salesforce generated email address, case should be created and reply back to user with case id in ...
0
votes
1answer
13 views

how to retrieve the previous email template?

I recently changed the email template however i want to see my previous email template. Can anyone suggest on this how we can retrieve the previous email template?
1
vote
2answers
1k views

Send email : SingleEmailMessage using email template and merge fields from campaign

I'm sending email from my APEX class using SingleEmailMessage and at the same time to fill the mail content i'm using the mail template mail.setTemplateId(id); in the template i have the fields ...
0
votes
1answer
31 views

Need a way to change email address link depending on sender profile marketing cloud

I have an email link icon in the footer of my email template. I want to be able to change the link of the email address in the footer dynamically depending on the 'from email' of the sender profile in ...
0
votes
0answers
26 views

Marketing Cloud _click LookupOrderedRows in AMPScript

I have a anchor href link on my Email. I am tracking the click activity on the link. When the link is clicked, is there a way to lookup the _click database using AMPScript LookUpOrderedRows or ...
4
votes
2answers
500 views

Blank emails sent when Visualforce email template called from workflow

enter code hereI have created visualforce email template for Task Object. Email pops up to the respective user Id when sent through 'Send test and verify merge fields' with content specified in ...
0
votes
1answer
28 views

Ampscript Block If/Then With Null Value

So I have the following Ampscript block at the header of my email: %%[ Var @current_term_end_date, @rows if Rowcount(@rows)>0 then Set @row = Row(@rows, 1) Set @current_term_end_date = ...
2
votes
4answers
911 views

Send email : SingleEmailMessage and merge fields

I've created a class to send email for those campaigns where the date is due. I need to use the email template as it has the logo and other basic required info (static) in it and it also has few ...
1
vote
1answer
405 views

Rendering text or image in Custom Email Template (HTML Version)

I have a custom email template (html and text versions). I want to render certain parts of the template based on a multi select picklist value. I have to render the below 'td' when User....
0
votes
1answer
584 views

Edit properties of a Visualforce Email Template in apex so the email sent through Messaging.sendEmail() will have the most recent data in it

I have a visualforce email template that displays the list of Opportunity records that are populated using a visualforce component. I'm using this email template in a schedulable class. The HTML ...
1
vote
1answer
2k views

Can you use dynamic visualforce in VF email templates?

I tried to use an tag in a visualforce email template and got the following: Error: <messaging:emailTemplate> cannot contain <apex:dynamicComponent> Is there any way to get around ...
7
votes
3answers
2k views

Can you perform DML operations from visualforce email templates?

Visualforce email templates allow you to include visualforce components with allowDML="true" but there doesn't appear to be any way to actually use DML. From the docs: You can't use data ...