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
0answers
171 views

INVALID_ID_FIELD, SaveAsActivity is not allowed with whatId that is not supported as a task whatId [duplicate]

I have an email template which is configured like this: recipientType="Contact" relatedToType="Lead" The email is sent using this: mail.setWhatId(leadId); mail.setTargetObjectId(contactId); mail....
0
votes
1answer
508 views

How to get List from Visualforce Component Controller

I have a visualforce component which is used in an email template to display a list of related items. Visualforce Component <apex:component controller="LeadProductsController" access="global"> ...
0
votes
1answer
49 views

Can a Custom Component Populate Gmail Subject and Body Fields Using the Lightning for Gmail Application

All that the documentation says is the following: The subject indicates the subject on the current email. <aura:attribute name="subject" type="String" /> The messageBody indicates the email ...
0
votes
1answer
39 views

Managed Email Template is not showing on Lookup

I created a lightning component that contains a field that looks up an email template. This is the attributes from the component: <aura:attribute name="emailTmp" type="EmailTemplate" default="{'...
1
vote
0answers
54 views

Detail Link in Email Template

Maybe I missed it somewhere but I haven't been able to find it anywhere. So here is the question: I am using Detail Link in email template and the email is send via Workflow to notify Record Creator....
0
votes
1answer
43 views

How to Pass the Record Object in a Click Action From a Lighting Aura Iteration?

I am working on a custom template picker component which filters/restricts templates available to users. The email form is in a child object which the template picker writes to using an aura method. ...
1
vote
2answers
1k views

Pass Id from Visualforce Email template to Controller

I am trying to pass an id through a Visualforce email template component to its class. The class creates a wrapper, to combine two objects records into one list. The two objects lists have a common ...
1
vote
1answer
83 views

Change content on the “Open in browser” page after sending the mail

Is it possible to change content on the "Open in browser" page after sending the newsletter mail by salesforce marketing cloud? I would like to do it in a way the link will continue to work but ...
3
votes
1answer
344 views

Validate Merge Fields on a Lightning Email Template in Apex

Is there a way to retrieve the merge fields of a specific Lightning Email Template in Apex? Example EmailTemplate template = new EmailTemplate(); template.getMergeFields(); I would like to validate ...
0
votes
1answer
31 views

How to provide sfdc org Link for Guest User

In email template, Using Please click on the link below link to view the record. Link to SFDC Record: {!Account.Link} Problem is ,If site Guest user submits the record it shows partner portal ...
1
vote
2answers
366 views

HTML Email Template : Looks Okay In The Editor, But Loses All Styling When Sent

I'm trying to create an email template in HTML. I originally did all the styling as an internal style - But later found out that styling must be done as inline css. My creation looks fine in the ...
0
votes
1answer
45 views

Lightning email can't enter message

when I click on email tab I only see related and no way to enter message. Also the icons for templates are missing, See the following:
2
votes
1answer
399 views

In HTML Email Template lookup field showing Name field of the related lookup object, how can I get Id instead?

I have two objects Parent and Child, I have created email alert on child with HTML email template, I have to send the link of site page in that mail template with URL parameter as Id of Parent, but ...
3
votes
1answer
47 views

Time dependent workflow email alert - dropping fields

I have a visualforce email template. When I send it via the 'send test and verify merge fields' button it populates correctly with all fields. When I send it via an immediate workflow action - it ...
3
votes
1answer
192 views

Not able to call a variable from constructor

I am using a visualforce email template which calls a visualforce component and that component calls the controller class. I am sending an Id from the Email Template to the component and trying to ...
0
votes
1answer
31 views

Access receiving email first name from email template

How to access to the Email Receiver First Name from the Email Template? For example, I have to send an email to a specific user that have to approve a record and I want the email say: 'Hello {!...
1
vote
0answers
97 views

Auto Select Email Template Apex Class not selecting template automatically.

I had a use case where we want to select an email template automatically, It needs to be either an HTML ( with a letterhead) or in worst case a custom email template (without a letterhead). I've ...
1
vote
2answers
621 views

Date formatting Marketing Cloud

I want to fetch date variable on a email in marketing cloud from a data extension that contains personalized dates. Also, when I preview the email, the date is displayed in the US format. I am looking ...
0
votes
1answer
146 views

Max width of an image in mc; defaulting to original width in outlook

This might be a simple question, but would anyone be able to help me set the max-width of an image in marketing cloud so that the picture doesn't default to its original size when downloaded in ...
2
votes
1answer
278 views

Accessing SLDS in a Custom Visualforce Email Template

<messaging:htmlEmailBody> <html> <body **class="slds-align_absolute-center"**> <p> All this must be center aligned</p> <p> All this ...
0
votes
1answer
299 views

getting EmailID of the emails in content Builder

I have created a different emails in the content builder and i would like to get the unique email id of the email using ampscript in data extension which will be used to determine the specific email ...
0
votes
1answer
118 views

Image “height” automatically added in Content Builder

I use custom HTML for my email templates. When a new image is uploaded into an email there is always an image heigth populated in the code. In a two column responsive content block we have to delete "...
0
votes
0answers
52 views

Unable to add attachment to the mail with html template

Users are unable to add the files to the mail while using an HTML template. Below is the screenshot which attachment icon being disabled once the HTML template is selected.
2
votes
1answer
2k views

Converting Email Templates from Classic to Lightning with “Not Allowed” errors

We are trying to convert some of our Classic email templates to Lightning email templates, but when we try to save our custom HTML into the source, we are receiving the following errors. The content ...
0
votes
1answer
509 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
52 views

Create Merge field in email template

I have a question related to email template. I have two object : 1. Sales order (This contain shipment type filed with Means_of_Transport__r as API ) 2. Means of transport (This contain code filed as ...
0
votes
1answer
18 views

Sending two different email alerts based on Sales orders

I am trying to create a process builder rule that does the below. When a new sales order is created - Send out a new email alert template. If the order quantity is changed - Send out an updated SO ...
1
vote
2answers
87 views

How to customize the email Template of the User Email address change Email

The Users want the content of the notification mail which they receive on changing the Email address to be modified. Or they want the From Email Address to be changed to a different one as some of ...
0
votes
1answer
232 views

Email template with visualforce issue, cannot set test record

This is the error that I'm faced today, and have no idea where it comes from! Error occurred trying to load the template for preview: List has no rows for assignment to SObject. Please try editing ...
1
vote
1answer
166 views

pdf is generating as invalid format

I have the following function which generated an email based on a template passed. The function is triggered from a rest api. public static Messaging.SingleEmailMessage singleMessageHelper( ...
0
votes
2answers
653 views

How can I update data extension after clicking Submit Button in the cloudpage?

I would like to update a field name "Email_Optin" in my data extension after clicking submit button and set the Value of it to True. Is this possible using ampscript?. Thank You!
1
vote
1answer
233 views

VF Email templates Boolean merge fields Automated Process User is always false

Use case: Trigger subscribes to Platform Event (hence running user = Automated Process) Trigger creates SObject w/ checkbox field set to TRUE Process Builder executes based on SObject values, ...
2
votes
0answers
70 views

How do I change social sharing icon in marketing cloud used in mailer?

There is a standard block of social share in marketing cloud. I want to change a particular icon (for example instagram icon, existing one is old one). Please let me know how do I change this ?
0
votes
1answer
402 views

Visualforce Email Template - broken images for all Email Clients? Workaround?

I have a case open with Salesforce, but I usually have better luck here. I have tested an email template on numerous mail clients - Outlook 2010, Outlook OWA, Gmail, and Yahoo. However all of them ...
0
votes
1answer
219 views

Issue with Visualforce page email template subject line

I'm trying to send 3 different email using a single email template and visualforce component. I'm using rendered to display the text in html email vf component based on conditions. However, when I'm ...
0
votes
1answer
961 views

Converting Currency to Decimal And Converting Back To Currency Display in Email Template

I have a currency field that I multiply by .5 in my apex code. This changes the data type to a Decimal. I want to display on a visualforce email template the newly updated number as a currency. ...
0
votes
0answers
709 views

INVALID_CROSS_REFERENCE_KEY: invalid cross reference id

I'm triggering an email with OnAfterInsert. Inside the method, I have access to all the necessary data to send the actual e-mail: emailtemplateId whoId whatId internalEmailAddrs externalEmailAddrs ...
0
votes
0answers
29 views

Use CampaignMember.Id in List Mail

I need to send an email to all CampaignMembers. I need to include (among other things) the Id of the receiving CampaignMember in the email text. It's basically a custom link that points to a public ...
0
votes
1answer
324 views

How to use Campaign's Name in an Email sent with 'Send List Email' feature?

I'm composing an email to be sent to all members of my campaign. I use Summer '18 Release's new feature which is mass email sending through the campaign object. What I need is putting Campaign's ...
-2
votes
1answer
46 views

Send email (Visualforce Email Template) included Visualforce component which render after update action

Want to send email after update with multiple records I have used Visulaforce Email Template with Visulaforce component having controller. Visulaforce component that getting list of record in table ...
0
votes
0answers
289 views

Text value of a hyperlink field in email template

I am having a hyperlink field in Opportunity object as follows: Label : ObjectA Name Value : HYPERLINK('/'+ObjectA__c , ObjectA__r.Name) I want to use text value of hyperlink field in an email ...
0
votes
0answers
56 views

Email not getting delivered when sender (user's mail) and recipient have same email domain

I am testing my approval email templates. When I use "Send Test and Verify Merge Fields" and send the mail to my email account (xxx@testdomain.com) which is also my mail in the org, I don't receive ...
0
votes
2answers
17 views

Unable to Set dynamic CCAddress in HTML email/VF email template

I am trying to add {!contact.owner} in ccAddress while sending email. Email alert gets triggered on workflow. I could not find any ccAddress in HTML email and also in VF email template. Is it ...
1
vote
1answer
33 views

Mass Send email with list/table of data [closed]

I would like to send an email to 500 Person Accounts every day. The email contains a personalised list of their appointments for the day. What is the best approach for achieving this using Salesforce?...
0
votes
1answer
223 views

Related records in HTML email template

I have a email alert which fires on contact record edit. Is it possible to display related records name in HTML email template? I know it can be displayed using VF email template, but is a there a ...
0
votes
1answer
486 views

Not able to implement background image in HTML email template in GMAIL/OUTLOOK

I am trying to send a background image in email. I am using HTML email template without Letterhead. On Preview, I can see the background image but it is not displayed when send to email server. I have ...
0
votes
1answer
92 views

Unable to use ISCHANGED in HTML email template

I am using expression {! IF( ISCHANGED( customObject__c.Amount__c), 'changed', 'notchanged') } But on Send test and Verfiy Merge fields, it is not showing any values. However, ISBLANK and ISPICKVAL ...
0
votes
1answer
104 views

Adding several pre-headers and subject lines to the same HTML template - SalesForce Marketing CLoud

I have built an email template that my client will use in SalesForce Marketing Cloud. He requested to insert several pre-headers and subject lines in one template. Is that possible? Usually, in other ...
0
votes
1answer
526 views

Get a name of an Approver in Approval Assignment Email

BACKGROUND I have an approval process configured for Opportunities: I defined the Approval Assignment Email Template as follows: I am using 3 users in my org for this case: User Admin - (Profile: ...
1
vote
0answers
417 views

Can I use parent field in the new Lightning Email Templates

Summer 18 added the features Lightning Email Templates and also added support for Handlebars Template Language - HML I really hoped that also the ability to add a merged field of a parent object ...

1
3 4
5
6 7
21