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

0
votes
1answer
17 views

Create a VF page as CSV with custom column widths

Scheduling a visualforce page as CSV Thanks for the solution to this issue. After following this article I was able to get the email attachment as csv file but the only problem that I have is the CSV ...
0
votes
1answer
15 views

Add recipient from objects between recipientType and relatedToType

I have lead, member and agreement objects, member has look-up to lead and agreement has Master-Detail(Partner) field. I created visualforce email template to display fields information from ...
0
votes
1answer
28 views

Error in Formatting through <apex:outputText> tag

I am formatting my field in my Visualforce Email Template. so when i am trying to do this it is giving me this error Data type of Monthly CC Vol is currency The value attribute on is not in a ...
0
votes
0answers
15 views

Email stored as rich text area in contact object

I have the following piece of code //email variable has a email which has been sent. it is declared here Contact con= new Contact(); con.firstName='AMC'; ...
0
votes
2answers
18 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 ...
0
votes
1answer
33 views

Parse JSON string in AMPscript

We are currently passing a string attribute via the REST API that contains JSON. { "User_List": "[{\"name\":\"john doe\", \"email\":\"john.doe@mail.com\"}, {\"name\":\"jane doe\", ...
1
vote
2answers
47 views

Guide Template Language to provide dynamic links via href attribute

I'm trying to use the Guide Template Language to provide a dynamic link in a triggered send, something like this: <a href="{{My_Url}}">{{My Url}}</a> or <a href="{{My_Url}}">Your ...
0
votes
1answer
16 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 ...
4
votes
1answer
26 views

Self-Registration Alert Administrator Email Template

I created a trigger to make new self reg users inActive after registering. Then created a workflow to email the Admin when a user self registered and to verify and activate that user. In my email ...
0
votes
1answer
11 views

Invoice Notice amount in the subject of the Visualforce email template is not displaying the second decimal [duplicate]

<messaging:emailTemplate subject="{!relatedTo.Invoice__r.Account__r.Name} - Invoice notice - ...
1
vote
0answers
13 views

Track Email Status (Opened or Not) sent from apex code

I already read some similar posts related to this topic. But I think things may have changed or the answer may be different. I know we can track email status if we send HTML email from the Contact ...
1
vote
2answers
106 views

Is Apex Class creation (for VF Controller) Restricted to Sandbox?

I have been progressing along my journey trying to pass sub-Opportunity data into an Opportunity record's alert. Thanks to your help, I was able to successfully compile and trigger a VisualForce ...
0
votes
0answers
29 views

How to schedule a class to send emails with user's email as sender?

Right now every email my scheduled class sends has my email in the replyTo address field, even though in the template I set up so it would get the record's user email, like in: ...
0
votes
0answers
16 views

Arbitrary size list as substitution attributes with Fuel API Triggered Send

As I understand, substitution strings in a triggered email are required to be tied to an attribute in the Subscriber Profile or in a Data Extention. How does one implement a dynamic list of ...
0
votes
0answers
5 views

Issue when querying EmailTemplate

I updating a VF email template and made changes in both the plaintext and html bodies. However, when I query EmailTemplate and debug out Body and HtmlValue my changes are not reflected. I do see them ...
0
votes
0answers
10 views

Approval process translate email

Is it possible to translate the approval emails that Salesforce sends when a user has approved or rejected the approval process? Thanks Nawshine
1
vote
0answers
16 views

how to make the vf template editable

How can we make a vf template editable, I tried with contenteditable="true" but the changes were not reflecting in the email.Pls suggest some solution <messaging:emailTemplate subject="Global ...
0
votes
0answers
12 views

How to default a template to <apex:emailpublisher> Subject and email body

I have VF page that includes component. There are 2 attributes emailBody & subject. Tried setting up them by apex method ; emailBody="{!defaultEmail.HtmlValue}" ...
0
votes
0answers
9 views

Dynamic Content in emails - can I base a rule off of whether or not a field contains a value?

I'm setting up dynamic content in an email for a client, and the logic that they provided is: If 'Field_X' contains any value, display 'Content_A' If 'Field_X' is empty, display 'Content_B' My ...
0
votes
1answer
16 views

Apex: access lead email history to prevent resending

Can I access a lead's email history in Apex to see if they've already been sent an email from a timeframe/template combination? Or even something arbitrary like the email subject? public void send() ...
1
vote
2answers
30 views

VisualForce apex:repeat Related Objects not rendering in VF Email

Thanks to Boris Bachovski , I was able to successfully get my VisualForce email to compile. However, when I fired off a test Email Alert, (this action was linked with the VF Template) the ...
0
votes
0answers
19 views

What value to Deploy in the 'recipientType' attribute?

I want to use a VisualForce Email Template for Email Alerting emails listed in a specific SF email alert. What "recipientType=" value should I use if I want the recipients to be defined in the ...
1
vote
1answer
33 views

VisualForce Email Template Error: Invalid field for SObject

I am trying to save a visualforce email template that has both plain text and html elements-- I just tried saving a plain text version to confirm the error is not being caused by an HTML ...
2
votes
2answers
475 views

Deployment of “Active Content” in Email

When I try to ant deploy ("Force.com Migration tool") to one of our sandboxes I get the following error message: email/folder/sometemplate.email -- Error: Your template contains active content, which ...
2
votes
1answer
52 views

Error when saving VisualForce email template “Error: Invalid Field”

I am following this SF VF email example. They have the relatedToType="Account" and their <apex:repeat var="cx" value="{!relatedTo.Cases}"> references Cases which should loop through the Cases ...
1
vote
0answers
24 views

Visualforce case assignment template visibility issue

I've created a Visualforce email template to use as notification when a case is assigned to a user (By setting the template in Support Settings > Case Assigned Template). Let's say it looks something ...
3
votes
1answer
39 views

Format date in Visualforce Email Template subject

I store an end date(last_day_for_payment) for Event payment in SalesForce. I send reminder 3 month before last_day_for_payment that date and ask user to pay before 2 month of last_day_for_payment to ...
1
vote
0answers
45 views

Get Email Body with HTML Tags

I want to send an email in my logic. I have created an Email Template. Here is what I want to achieve: Email Template: <html width="600px"> <style>body{font-family:"Helvetica ...
2
votes
0answers
39 views

Merge field not populated in the subject of a Text Email Template

I am facing the following issue: I have specified an email template that points to an Account record. I have included in the body and the Subject both, merge fields. The values in the body of the ...
1
vote
1answer
23 views

Merge Fields and Template Defaults with QuickAction.QuickActionDefaultsHandler

I am currently trying to implement a default action for the E-mail button on my Case Feed. I am using the QuickAction.QuickActionDefaultsHandler to set my default actions, using the little bit of ...
1
vote
1answer
52 views

Dashboard Components in Custom HTML/VisualForce Emails?

I am trying to send specific dashboard components in regularly programmed html emails, and doing some basic reading suggests this certainly isn't an overtly offered feature by Salesforce (yet) but I ...
0
votes
0answers
35 views

Email newest/latest quote PDF as attachment when created

We are using standard Salesforce quotes. When a new quote PDF is saved to the quote, I would like to ideally email this as an attachment, or at least a link to view the PDF, to the opportunity owner ...
0
votes
0answers
29 views

How could I do line breaks (/n or /r/n) on Messaging.SingleEmailMessage PlainTextBody?

I know this question is asked before and could found in the below links, (I am posting this as I want to post my code with some changes to the solutions provided in the below links.) PlainText email ...
0
votes
0answers
20 views

Edit Email Template during the run

Can someone let me know how to replace "{!Compliance_Incident_abv__c.RepEmail_abv__c}" here with a parameter value passed to the method (not Using REGEX if possible)? I have an email template with ...
0
votes
1answer
102 views

Fail to send email by utility class

I have below utility class which throws error as this in debug log. Error INVALID_FIELD_WHEN_USING_TEMPLATE: When a template is specified, the plain text body, html body, subject, charset, and ...
-1
votes
1answer
23 views

Regex expression [closed]

Can someone let me know regex expression for below? I have an email template with below text. Template Body Dear {!Compliance_Incident_abv__c.RepEmail_abv__c}, What you need to know: New ABS ...
0
votes
1answer
36 views

Apex utility class for email send

I have below method to send email. Now I need to do the same from a separate utility class where I will have to pass toAddress , ccaddress , parameter string which has a map with Email template , ...
0
votes
0answers
46 views

How to use the picklist values on email

I am facing the problem on sending email.In our org we are using Picklist (Multi-Select) value for product.I need to mention the product are selected by user in email body.For example,User A selected ...
0
votes
1answer
42 views

Show actual curreny to 2 decimal places in Visual Force Email template

I have an visual force email tempalte however the currency field is giving me some problems: We are writing to advise you that an amount of £{!relatedTo.Amount__c} is outstanding ...
1
vote
0answers
22 views

How to dynamically change the reporting to name in email body

I send the mail to reporting manager and i want to mention the manager in email body(sample Dear XXX,).But in my scenario manager level was changed (For example A1-B1-C1 and other one is ...
0
votes
1answer
37 views

Can I call an Apex class in HTML email templates?

I've written an Apex class that returns a string. How can I call it in an HTML email template in Salesforce? <h1>${!CommaSeparation.separate(Lead.Credit__c, 0)}</h1> The function works ...
2
votes
3answers
161 views

Apex/Visualforce: multiline IF statement in HTML

Can I write a multiline if statement in Apex/Visualforce HTML? Something like (definitely pseudocode): <apex if (condition)> <strong>This HTML.</strong> <apex else> ...
0
votes
1answer
42 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 ...
0
votes
1answer
28 views

Formatting custom field values in email template

Is it possible to re-format custom field values in a mail merge HTML template in Salesforce? Like to remove a dollar sign, or the cents in a dollar amount?
2
votes
1answer
40 views

Visualforce email template in different languages

I developed a Visualforce emailtemplate and used all the custom labels to translate into different languages. the subject is coming as ??????? for all the languages except for english, but in preview ...
0
votes
1answer
15 views

How to stop sending email templates from salesforce to the associated contacts for old cases

Recently in our org we started to work on the data clean up as a part of it we backed up all the cases accounts contacts and inserted the data of last 1 year but the business wants to look at all the ...
1
vote
0answers
25 views

email format not consistent with visualforce email template

i'm using visualforce email templates to receive mail but seems the format is not the same as in template when the mail is recieved, used both style and inline style but seems not to work: ...
0
votes
0answers
9 views

Add an email template to a package

I am building a package in my sandbox full to upload to prod. I am trying to add an email template to my package, but I can't find it in the list. The email template is created in a custom folder. ...
0
votes
1answer
29 views

Pulling Merge Fields that contain HTML into an email template

I have a RTF with html code in it: <button>Click Me</button> When I create an HTML Email template and use the merged field: {!Object.Field__c} The output in the template is simply: ...
1
vote
0answers
20 views

Email Template - adding attachment from relatedTo object [closed]

I have a workflow rule that generates an email notification. The email template is a custom template utilizing HTML and VF tags. What I would like to do is include an attachment in the relatedTo ...