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.

learn more… | top users | synonyms

2
votes
0answers
17 views

Email template merge fields not populating when sent via Apex

I'm having trouble with email template merge fields that are not being populated when the email is sent by Apex. I have an Apex method that uses setTemplateId, setWhatId, and SetTargetObjectId. The ...
0
votes
0answers
12 views

Want to send excel file as an attachemnt visualforce template

My requirement is as below :- When User fills account form fields and hits save , all the fields value should go as an attachment in excel format. where column will be the fields name and row will be ...
0
votes
1answer
33 views

what is the rule for __r API name?

I have always the same problem when I use apex: repeat the question is how or where do we find/write the API name for a plural Label . I had the same case before with BC (Purchase order) and BC ...
2
votes
0answers
15 views

Can I direct the detail link in an email template to a specific url

We have all of our users login through a proxy server instead of going directly to login.salesforce.com but when I add a detail link (i.e. {!Opportunity.Link}) to an email template/alert the user is ...
2
votes
0answers
20 views

HTML Email Teamplate Issues SF

In the HTML email template I want to distinguish between internal and external user while sending any email. I tried using If loop and it worked for me but while I try to access certain merge fields ...
1
vote
1answer
39 views

Custom Template Hide Parent element of empty content area?

I'm developing custom templates which a non technical person has to fill up the contents (only text & images). In my case, primary content area going to have any 1 of 3 types of content ...
1
vote
1answer
21 views

Visualforce Email Template Related Info

I have a template for a Custom Object Business_Trip__c with Child relationship to Event via Custom Lookup. I want to show related meetings. Template below: <p><b>Planned ...
2
votes
0answers
16 views

Not able to populate Partner Account field in HTML email template

I want to populate the Partner Account field value in a HTML email Template. This field is a standard lookup field(Account) and available on Opportunity page. while updating the template I do not see ...
0
votes
0answers
16 views

Smart Template implementation for custom objects

I have come acros a link for creating Smart Email Templates (https://www.salesforce.com/blog/2012/10/case-feeds-smart-template-sample-implementation.html). However, to make this work for Case object ...
2
votes
1answer
35 views

VF Email Template update Salesforce

I am hitting a dead-end. I'm attempting to create a VF Email Template that will, based on an action of the recipient, update a record in Salesforce. However, I'm not sure if it really is possible ...
2
votes
1answer
39 views

How to wrap record id as a link to the record while sending email

I am writing trigger to send email to task owner after task got created.In the mail i was sending recordId as a plain text.But i was trying is there any way to make the id as a link to the related ...
0
votes
1answer
24 views

Can I change Email Alert Additional Email recipients based on RecordType?

We are in the process of going multicompany in SF and separating company information by RecordType. Two of our companies have substantially similar business processes and the customizations we have in ...
0
votes
1answer
20 views

Default Template, From address and Subject lines for email

I have an request from our users for which I need help. Our users need a particular email template to be the default template, along with From address to default to support@xxx.com instead of their ...
3
votes
0answers
41 views

How to set visualforce page object reference?

I am trying to send an email to every account in my org from a controller, and each email has an attached VisualForce page. The problem is that I am hitting governor limits on SOQL queries. The ...
0
votes
0answers
23 views

Does sending SingleEmailMessage with template use a SOQL query?

I'm getting a somewhat strange error message when trying to send a list of emails System.EmailException: SendEmail failed. First exception on row 11; first error: LIMIT_EXCEEDED, ...
0
votes
1answer
42 views

Please , how to retrieve line items to Visualforce Email Template?

I try to create Visualforce Email Template in order to send our Purchase order (BC) to the supplier So I need to insert inside the mail , all (BC line items ) I begin to create HTML+CSS code , ...
1
vote
1answer
54 views

WhatId Is Not Available For Sending Emails To UserIds [duplicate]

I am getting the error - WhatId Is Not Available For Sending Emails To UserIds while trying to send email to user from an Apex Trigger using SingleMailMessage. The code is working absolutely fine ...
1
vote
0answers
13 views

Controlling Picklist Value is not showing up on the email template

I have a controlling picklist, which values are not showing up in the email template when i use the test of sending template, but the dependent picklist value is showing up, i do not know, where to ...
2
votes
1answer
29 views

I have a simple VisualForce email template that gives a <p> tag error message when I add in the Apex repeat tag.

The Template below validates ok, but when I add the repeat tag it get an error: When I add the Apex tag here is the message I get: Error Error: Volunteer_Reminder_of_All_Opps line 21, column 7: ...
0
votes
0answers
14 views

Conditional style in template

I'm building a template on ET, but I am having some issues. In the email, we are going to use stacked images (without border or padding) and, as you know, to avoid white spaces between images, we ...
2
votes
1answer
35 views

Send-email to an email of a Custom Object (not a Contact's email)

I am on an Account page. I put a "Send email to External Agent" button. Behind this button there is a page connected to a controller: public with sharing class emailToAgenteEsterno{ public Case ...
2
votes
1answer
74 views

Visualforce IF Statement

The code below is a section in a VF email template that should conditionally output a link to all the Legal Request records where Request Type == Sales AND Service Type == New Business, but something ...
0
votes
1answer
35 views

i want feedback in email and that fedback data has to be stored in salesforce org

i have requirement like below. Send email through workflow > user receives email and filled some information like grades, agree , not agreed and bla bla.. >submit and these data has to be stored in ...
1
vote
2answers
33 views

formatting File name of attachment in vf email templates

I'm using VF Email templates while sending email via workflow. I want to customize file name of attachment which is sent along with email. <messaging:attachment filename="MyFileName.csv" > ...
0
votes
1answer
38 views

Adding Opportunity Products Related List to Visualforce Email Template

I am trying to build an email template that lists all the OpportunityLineItems in the email body. Can I use the <apex: relatedList> tag? That is what I am trying to do with the code below, but ...
0
votes
0answers
23 views

Define a function in Guide Template Language

Documentation for Guide template language has an example of how to call a function, but nothing on how to define a new function. Any advice on this?
0
votes
0answers
24 views

Workflow rule Email Alert not populating fields

I established a workflow rule to trigger an Email Alert. When I test merged fields and sent a test email it test out with no issues. In production, Some times, a few of the merge fields are not ...
0
votes
1answer
37 views

Two Dynamic Headers for the email

We have a requirement where we need a different header for the same email based on the condition in the code which triggers that email. So in our ET account there are two headers set up HeaderOne ...
2
votes
2answers
38 views

Controller method doesn't load with custom component and email template

I develop an email template which calls a Visualforce component with a custom controller (controller of the custom component). I give an opportunity Id to my custom component and I would like load ...
3
votes
1answer
47 views

Bulk Edit Email Templates Settings

Simple question, we have 50+ email templates that are currently not activated that need to be. I was curious is there a way to do this in bulk or through metadata rather then editing each one ...
0
votes
1answer
27 views

Using email templates

I want a email template which will have text like this Dear {contact.Name} Thanks for approaching us for product {SR.product.Name}. we have reviewed your request and would like to correspond with ...
0
votes
2answers
78 views

How to find 'URL' and append something at the end of URL

In Data Extension one field 'HTML' have Data that I have shown below, Now I have to Find the 'Href', and and at the last of URL append some text like '&MC='. It may have Multiple 'Href'. Please ...
0
votes
0answers
18 views

Why is mail merge changing the layout of my envelope template when filled?

I have to create a mail merge template for printing out envelopes. I'm using Word 2007, and when I set up the template the space for the recipient address is centered towards the bottom of the ...
0
votes
1answer
81 views

System.EmailException: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id : using Event in WhatID of singlemailmessage method of salesforce

I am trying to send email to Contact through Apex class with SingleEmailMessage for Event assigned/updated for him, so used: SetWhatID = Event.id; It is failing to send email with below exception: ...
1
vote
1answer
37 views

Can't find email template error

Recently we did have a deployment which involves adding a new field in Sample request page. Part of the deployment was change to class and trigger to update the new field. Once deployed, we are ...
0
votes
1answer
35 views

Email Signature

I have one scenarios like, have configured out going email setting under "My Email Settings" and there i have mentioned a signature. Now i also have one visualforce email template with a different ...
1
vote
1answer
60 views

Send Email Button URL

I know there are a lot of posts on this topic, but I haven't come across one with this issue. The closest is this post which I'm hoping the OP answers my comment. I'm trying to create a button on the ...
0
votes
1answer
16 views

I need to Change “From” email in Visualforce template.

We have a daily scheduled apex job that sends email everyday (we use visuaforce email template). I would like to change "From" email address in one specific visulaforce template. I have already added ...
0
votes
1answer
24 views

Email Template Greeting message issue

My requirement is when a new User is Created an Email is to sent that new created Users Email address with message Welcome UserfirstName + UserLastName. For that, I created a HTML Email Template and a ...
4
votes
0answers
46 views

Email publisher: Don't override subject when selecting template

I have a question involving the Case feed email publisher. For a customer I am currently implementing their Service Cloud. The customer is used to do alot of communication over email and in addition ...
0
votes
1answer
61 views

Mail Merge: how to create a template in Word?

I'm new to Salesforce and my company did not give much training on Salesforce. I would like to know how to create a template in Word and add fields from Salesforce to merge together. I researched ...
2
votes
2answers
146 views

Merge field not populating in Email Template

I've an email template and I've few merge fields in them. This email template was working fine until we migrated this to a new environment. So, first thing is that I'm using the same email field to ...
1
vote
1answer
71 views

Images in RTF field is not visible in HTML template emails

I have a custom RTF field in custom object which is used in HTML email templates. Normally this field would have images and text. The text content is visible in the email, but image is not visible in ...
0
votes
2answers
66 views

How to add hyperlinks to icons in email templates using letter heads?

how to add hyperlinks to image/Icons in email templates? I have tried using Formula field. Eg. HyperLink("www.google.com",Image("/resource/image/googleIcon.png","Google"), "google") The ...
0
votes
1answer
46 views

Workflow for sending Email Template with updated Account and Opportunity

I am updating my opportunity(Child object) and Account(Parent Object) through API. I want to send updated fields to selected email addresses to email templates. I was trying the workflow criteria as: ...
2
votes
1answer
44 views

Anyway to control Communities E-mail Welcome Message

We have an org that we are moving from Portals to Communities, the Communities Welcome E-Mail is sent to all user accounts when their user/account is created: From the Communities > Administration > ...
1
vote
0answers
34 views

Send an email through Salesforce server from External Application

I have an angular application, and wants to send an email to Salesforce contacts from external application through salesforce server. I did not find any api or javascript file which allows me to ...
3
votes
1answer
159 views

LetterHead in Apex

Is it possible to access LetterHead in apex.I need to put the letter head in sethtmlbody method.How to access LetterHead. UPDATED Here the bt.value is displaying blank when contact is receiving an ...
4
votes
2answers
93 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. ...
2
votes
1answer
85 views

Access parent object fields in VisualForce email template subject

I'm trying to display a parent field value in the subject line of a VisualForce email template and I'm running into problems. The use case is that we're going to fire an email alert that is based on a ...