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
0
votes
1answer
12 views

How to create email template folder using SFDX command/CLI?

We are building test suite in our CI/CD pipeline, It will automatically create a scratch org and then it will start the test script but metadata deployment is failing due to email template folder not ...
-4
votes
0answers
13 views

How to write Ampt script code to capture data from two different data extensions which has two different primary keys [closed]

There are two different data extension DE1 and DE2 My targeted data extension is DE1 but the felid which we need is missing in DE1 and which is included DE2 Note: the primary key is different in both ...
1
vote
1answer
29 views

retrieve all email templates with sfdx

I am trying to generate a command or set of command that will retrieve all my email templates. I am using sfdx and do not want to use ant or package.xml This post only talks about getting a specific ...
0
votes
0answers
11 views

Best practice to automate sharing Files with users according to their level of access to the Email Template (LEX)

We wanted to enable global settings for Files "Set file access to Set by Record for files attached to records" in order for some of our users to have the correct (Read/Write) access to Files ...
0
votes
1answer
30 views

Adding conditional logic (IF, THEN) in Salesforce HTML email templates

I'm struggling with adding IF, THEN conidition to my HTML Classic Email template and hoping someone can help. I am trying to say if Cohort Owner's name is 'X', then post the X link, if Cohort Owner's ...
0
votes
1answer
20 views

How to send email to queue through flow

I have created a flow, which is triggering email alert to individual user on certain condition. But I want to use queue instead of user, anyone could guide me here. Thanks
0
votes
0answers
18 views

How can we avoid/replace the changing of email subject

When ever a case generated from email to case/from the portal. The cases are associated with the email subject and if I am user who is going to reply from the console(Sending a reply email from ...
0
votes
0answers
23 views

Passing data to email template after triggered send in journey builder

I am trying to pass the data to the email with a triggered send from Journey Builder. The template is connected to the same data extension as Journey. So I have this: %%[ var @data set @data = ...
0
votes
1answer
20 views

Template-based email Litmus preview showing only a text list of content blocks

The email shows fine when I send a preview to my email clients, but when I preview it in the Salesforce Litmus tab, I just get a list of AMPScript content blocks that look like: %%=ContentBlockbyID(&...
0
votes
1answer
36 views

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

I have requirement to bring child object field in email template. I have created custom controller "quoteEmailTemplate" that uses a SOSL call to return a list of Cabinets , I have created ...
0
votes
0answers
25 views

Formula field not showing any value in HTML Email template

I have a formula field, in which I refer a check box and if checkbox is checked it displays yes else no. When I'm referring that formula in my HTML Email template, its not showing any value, It's ...
0
votes
0answers
45 views

Update email when its template has been changed?

My email is using a template and sometimes I would make some changes on that template. In order to get the latest email, I have to go to that email and click "Update Email now" Is there a ...
0
votes
0answers
21 views

Visualforce Email Template Help with Conditional Rendering Datatables

I have a component I am trying to display within a Visualforce Email Template. Essentially I need to display 1 of 4 possible outcomes within a datatable depending on if the data were to be returned in ...
1
vote
1answer
60 views

Help Required on visualforce email template

I Have an email template  which is fired whenever a text value is updated on the field named ABC.  Here I am getting updated text values only. But my requirement is to get the history of the field (...
1
vote
1answer
89 views

sending html email from APEX using templates

When I am doing a test send using the data in the quote object record, I am getting an html formatted email with values. In the doc: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/...
0
votes
1answer
15 views

Create "Draft" Email In Pardot API

I have a tool that builds emails and can send through various ESPs like Pardot (sand Salesforce Marketing Cloud). I see the API endpoints for sending emails (https://developer.salesforce.com/docs/...
0
votes
0answers
94 views

Sending Lightning Email Template from Apex code

I'm trying to send an Lightning Email Template via APEX, have not been able to do so. I get no exception or anything, just no email gets sends. With various System.debug() commands I'm able to ...
0
votes
1answer
19 views

classic email template - email recipients

a classic email template is currently being sent out to one user every time a 'funds request' is made. I would like to add another user to also receive this email, but I cant find where to add the ...
0
votes
0answers
12 views

Display Visualforce Email Template Body with VF Component in LWC

Before sending out an email I have to preview the body of a Visualforce email template in 'lightning-input-rich-text' component in LWC. The VF email template has a VF component inside it to generate ...
0
votes
0answers
42 views

how to unlock a classic email template to edit

I'm trying to edit a classic email template on a custom object but it gives me this error message: This email template content can't be modified. And I can see a lock on the email template. However, ...
0
votes
0answers
10 views

How to add nested tags to Calendar Campaign

In Email Studio, you can assign nested tags to an email. In the Campaigns Overview, you can create a campaign and you can assign an email to that campaign. You can also assign tags to a campaign. But ...
1
vote
0answers
30 views

Multiple If condition inside classic HTML Email template

In classic email template I am trying to put multiple if condition for two different fields and that two fields are formula fields The fields names are X1Annual_Meeting__c X1Proxy_Other__c if ...
0
votes
0answers
22 views

Send email from flow and record in email activity

I created a button connected to a flow that send an email template to my client. I would like that to be recorded in the Email Activity so when the client open the email I see it was open. I added the ...
0
votes
0answers
10 views

Unable to find email attachment and email template icon at the botton of email tab from case feeds

I have created a quick action to send email. I have added that to my case feeds. On click of email action from case feeds I am not able to find email attachment and email template icons at the bottom. ...
0
votes
0answers
10 views

Attach an Email to a Case using a Work Order Line Item Template

I am trying to attach an email sent out using a Work Order Line Item email Template to the Parent Case. I'm using the Messaging.SingleEmailMessage to send the message. If I use the WOLI in the WhatId ...
0
votes
0answers
23 views

Classic Email Template with VF Page

I have a VF page created with resources and css in it. I would like to create a classic Email template that poke that VF page and include it in the body of my email.I tried to copy the content of my ...
1
vote
1answer
41 views

Feeding Subject Line to Title for View as Webpage

I'm trying to use ampscript to feed the subject line to the title tag on the webpage that loads when clicking on VAWP. -I have the title tag set as <title>%%=v(@Subject_Line)=%%</title> in ...
-1
votes
1answer
20 views

pre-populated emails [closed]

Please see the initial sketch below. Can you please tell me if this is possible in Salesforce, or if there is a better way of doing this? Would I have to use Outlook? or can this be done directly ...
1
vote
0answers
47 views

System.ResetPasswordWithEmailTemplate not sending context to the VF Email Template

in here issue details: Context: In our system we are sending Welcome Emails using the method System.resetPasswordWithEmailTemplate to customers in our Experience Cloud (community). When we tried to ...
1
vote
1answer
24 views

Record page link is not appearing in the email

I am sending out an email from my code after a certain action, and I am trying to add the record link to it. But in the email that is being sent out, the link of the record page is not appearing or ...
0
votes
1answer
51 views

how to have buttons and social media images in salesforce email template

Hi, I have a requirement to create email template which includes company logo as header, email content , button, social media icons and other links and it has to be used in customer community. Looks ...
1
vote
1answer
52 views

Is it possible to remove extra html added when using content blocks in Marketing cloud?

I have an email that has to be sent, I am a developer, but not an MC consultant The problem is that when we create an email message & paste our email html code, everything works fine When we ...
0
votes
1answer
34 views

Single email messaging class functions [closed]

Is there any good resource where its explained clearly about the below functions of Single Email Messaging class and their usage: renderStoredEmailTemplate setWhatId setTargetObjectId setTemplateId ...
0
votes
1answer
35 views

Initial expression is of incorrect type, expected: Messaging.SingleEmailMessage but was: List<Messaging.SingleEmailMessage>

The below code gave me his error: Initial expression is of incorrect type, expected: Messaging.SingleEmailMessage but was: List<Messaging.SingleEmailMessage> How do I rectify this? Code: public ...
0
votes
0answers
54 views

HTML Visualforce Email Template for custom object lookup fields

I have a custom object called Class__c and Contact(Participant__c) is lookup field. I have set up an email alert every time a class button is clicked. But I'm unable to show the a lookup field value ...
0
votes
1answer
29 views

How to send financial force sales invoice with attachment [closed]

I've been trying to send the financial force email that from Apex that is called from a Process. As I understand the invoice should be attached when the email template is used with the WhatID set (...
1
vote
1answer
39 views

Attribute "src" on element <img> is not allowed, or has an invalid value

I have a packaged Lightning Email Template. I am able to upload an image file to a Lightning Email Template with ease. However, when I then try to move that email template to a new environment (i.e. ...
0
votes
1answer
41 views

2021 - Unable to use custom fonts for emails in Marketing Cloud

I've been trying to import a custom font for MC emails. I have followed the steps from this similar discussion: Custom font in Email content blocks I have tried both ways - using SFTP and ContentBlock,...
0
votes
1answer
27 views

(How) can I create an email template which digests multiple instances of an SObject?

Let's say I have a custom SObject MyObject__c with a custom text field Message__c. Periodically, I want to send out an email which will collect all instances of MyObject__c which have the same value ...
0
votes
1answer
133 views

Remove duplicates in Journey Builder

I was wondering if there is a way to remove duplicates in Journey Builder? I'm looking at creating a welcome campaign via Journey Builder. Currently I have within my welcome email AMPscript which ...
0
votes
1answer
35 views

AMPscript for adding the Order Number to an email subject

I am trying to add the order number to an email subject and I don't know-how. Plus I am really new to the AMPscript world. I want my email subject to be like: ''Your #OrderID is on the go'' for the ...
0
votes
1answer
22 views

VisualForce Email Template - Error: Syntax error If Condition

Getting Error: Syntax error when i tried to add the below condition in Visual-force Email Template with dynamic variable {!IF(recipient.RecordType.Name != 'Guardian',{!relatedTo.Name__c}, {!relatedTo....
0
votes
1answer
33 views

Details on JobContentBlock / Snapshotting

Recently i had to deal with a duplicate key error which was caused by a email activity inside a journey that somehow made me question a whole approach i have set up for templates and email across a ...
1
vote
0answers
30 views

Salesforce Email Reply BCCs

My client is looking to remove the auto BCC on Case Reply emails: I can do this by updating the EmailPreferencesAutoBcc field on the user record for the existing Users but how do I prevent this from ...
0
votes
1answer
29 views

Webservice callout in Apex component used in EmailTemplate thrws Programmer Error: transaction committed or rolled back while performing api operation

I have an email template which I need to build using many information , so I have used apex component <c:EmailTemplateComp ObjectID="{!relatedTo.Id}" show_url="false"></c:...
1
vote
1answer
55 views

How to create HTML email template for setup audit trail

I want to implement one functionality where batch class will send the audit trail data in the html body format to the specific recepient. I was trying to create the email template for setup audit ...
0
votes
0answers
97 views

Combine global variables and custom labels in email templates

I am trying to dynamically place {!$Network.NetworkUrlForUserEmails} in a custom label for an email template. I want to confirm if these two hypothetical solutions are possible: 1. Include global ...
0
votes
0answers
13 views

Not sure where the approval Email is getting triggered from!

I recently recieved a req to modify the template of Email being triggered by an approval process. Upon looking I donot find any such Email template in the org, and there is no Email Alert in the ...
0
votes
1answer
26 views

use instanceof keyword in a visualforce page

Im trying to use the instanceof keyword in a visualforce template. I would like to pull the MobilePhone field from the Related Owner record. This works when accessed in apex but is not working in the ...
0
votes
0answers
59 views

Getting the SSJS value from a for loop and assign it a ampscript variable

I have a requirement, I need to encrypt a data field value from the behavioral trigger Abandoned cart and after extracting the JSON body, I have to use the product information in the email template. ...

1
2 3 4 5
24