Questions tagged [visualforce-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

How to access ContentDocument to be used as attachment in visualforce email template

How to access ContentDocument to be used as attachment in visualforce email template <messaging:attachment filename="{!relatedTo.ContentDocument.Title}" renderAs="{!relatedTo.ContentDocument....
1
vote
1answer
35 views

How to get the attachments in apex which we have set in visualforce email template using <messaging:attachment>

below is the code snippet of the visualoforce email template. <messaging:emailTemplate> <messaging:attachment renderAs="PDF" filename="yourCases.pdf"> <html> <body&...
0
votes
1answer
41 views

VF outputtext with value if contains condition and currency format

I want to format my Amount with currency and at the same time use the condition contains, bur I'm not sure how to put it Currency is working: <apex:outputText value="{0, number, currency}" ...
0
votes
0answers
79 views

Custom Lightning Record Page Template not showing up in Template Switching Wizard

Built a custom lightning record based on the code here (the "Making a Record page with collapsing regions" one). It shows up under Custom when i go to build a new lightning record page but when i go ...
0
votes
1answer
129 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
0answers
25 views

Retrieve contact's profile in visualforce email template

<apex:repeat value="{!relatedTo.Apttus_Config2__AssetLineItems__r}" var="astitem"> <apex:outputPanel layout="none" rendered="{!IF(astItem.Apttus_Config2__EndDate__c != ...
0
votes
1answer
125 views

How to display the currency field in visualforce email template

Mutilple Currencies is enabled in Org. Default -USD Ex : i am having currency value__c(datatype - currency) field .if the GBP is selected the amount will be displayed as GBP 1000 (USD 1316) When i ...
0
votes
1answer
217 views

Images in PDF attachment of a Visualforce email Template

When I try to a add an image in my PDF attachment of my email : <messaging:attachment filename="test.pdf" renderAs="PDF"> <apex:image value="https://drive.google.com/uc?id=1dRlAxFf-...
0
votes
2answers
66 views

vf email template can be editable once it managed?

In visual force email template,the user/admin will edit the content whenever necessary,so once it managed can we able to edit the vf email template??
1
vote
2answers
524 views

Conditional rendering using IF in Visualforce Template

I have a VF template where I need to vary the closing part of the mail(after 'Best Regards') based on a particular Picklist field on the case object. Eg if Custom_field__c ='ML' then the closing part ...
0
votes
0answers
173 views

Formatting parameterized custom label inside subject for Visualforce Email template

I'm trying to use the format() visualforce function to have a parameterized custom label as my Visualforce Email Template subject. This is my current code: <messaging:emailTemplate ...
1
vote
0answers
32 views

Add A Visual Image Into a VF E-Mail template from the “Notes & Attachments” related list of a managed package object

This is the code I have written thus far: <messaging:emailTemplate subject="Your Offering Listing" recipientType="Contact" relatedToType="vlocity_ps__InventoryItem__c"> <messaging:...
0
votes
1answer
136 views

Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of messaging:emailTemplate

I'm trying to understand the VisualForce code below to see what was written & is causing the error above: <messaging:emailTemplate subject="Your Offering Listing" recipientType="Contact" ...
0
votes
1answer
250 views

Use logged in user merge fields in visualforce email template

<messaging:emailTemplate subject="Case Report Type" recipientType="Contact" relatedToType="Account" replyTo=""> <messaging:htmlEmailBody > <html> <body> <style type="...
0
votes
0answers
31 views

Custom button functionality

I'm getting above error for sending email using apex class. I have a custom table and I have to design a method for button. In table their are so many records but whenever I'll select and record and ...
1
vote
1answer
99 views

VF Email Template

I need help in making the below scenario work . Below is the detailed explanation On the child custom object we have custom button send email which sends email to the selected child records . Through ...
1
vote
1answer
366 views

Unable to load VF Component in the VF Email Template

I am facing issues while developing Visualforce email template. I am unable to add VF components in the Visualforce email template. Looks everthing good to me, but not sure why VF Component not ...
1
vote
1answer
303 views

Japanese character displays in Visualforce template but in PDF it shows question marks (???) [closed]

In my company we use Servicemax managed package. In one of the transactions, we have a visualforce template that generates a report. When I check it in our visualforce page I see it like this: But ...
1
vote
1answer
1k views

Dynamic Subject in a Visualforce email template

This is my Visual force email template : Controller public class casetemplate{ public id accountid{get;set;} public list<case> getcases(){ List<case> caselist= [SELECT ...
0
votes
1answer
43 views

Visualforce Email template not creating attachment

I have a VisualForce template for an email, and this also has a PDF attachment similar to the email itself. When I run the Send Test and Verify Merge Fields it creates it fine, populates the fields ...
0
votes
1answer
200 views

How can I create CSV Attachment via Visualforce Email Template?

I'm trying to create a csv file attached to a visualforce email template. The csv file is based on a report that has a bunch of columns (fields) already, and all that I usually do is pass the Quote ...
0
votes
1answer
72 views

How to create page block in visual force email template

I want this type of table in email template but i can't use or . how we create this standard table by using css and html.
2
votes
0answers
34 views

Can I use a SelectList in a VisualForce email template?

I have a VisualForce email template which is used to send a list of products to customers. The products are listed in a table in the email and I would like the end column to be a picklist with options ...
1
vote
2answers
61 views

How to have a field display without a decimal

I have three fields in the subject line, the last 3, that are displaying the numbers with a decimal. The fields are rollup summaries. How can I get it so it doesn't show the decimal? <messaging:...
0
votes
1answer
127 views

Help with Visualforce Email Template

When we create an opportunity we create a certain number of quotes (custom, child record). I would like to be able to send an email to include information from all the quotes created under the ...
1
vote
0answers
44 views

Chatter to Apex: Getting Attachment

I am using rest api (ConnectApi namespace output classes) to get the chatter feed details of a particular group in my org and using Javascript remoting to display the elements in a custom vf page. So ...
1
vote
1answer
581 views

Multi-lingual Visualforce email templates

I have a requirement where on workflow rules I want to send out an email in the users preferred language, Is there a way to create multi-lingual visualforce email templates? here is the sample ...
1
vote
1answer
541 views

Displaying user's profile picture dynamically in email template

I have a requirement to display user's profile picture dynamically in the email template. Email template: <messaging:emailTemplate subject="Test" recipientType="Contact" relatedToType="Account"&...
0
votes
1answer
102 views

Contact Address Format

I am using the below Visualforce Email Template: <messaging:emailTemplate subject="Address Allignment" recipientType="User" relatedToType="Contact"> <messaging:htmlEmailBody > <...
1
vote
1answer
324 views

Add User Profile Picture to VisualForce Email Template

I have a running VisualForce Email Template for 'Case', and wish to include the Case.Owner profile picture. I am reading (here) that one can use either FullPhotoUrl or SmallPhotoUrl, but this doesn'...
2
votes
1answer
205 views

Visualforce component applyBodyTag work-around

I have a visualforce page and visualforce component. The visualforce page simply calls the visualforce component: <apex:page renderAs="pdf" applyBodyTag="false"> <c:Component /> </...
0
votes
1answer
442 views

VisualForce Email Template - declared 'htmlEmailBody' render as text

I have a VisualForce Email Template, which includes the 'messaging:htmlEmailBody' decleration. When testing in the preview editor, the template renders the HTML as needed: When the Email is sent to ...
1
vote
1answer
196 views

VisualForce Email Template - include Case Email Messages through controller

I am trying to create a VisualForce Email Template, related to the Case Object. In the template, I wish to include the email correspondence we had with the customer as a thread. Below are the Apex ...
0
votes
1answer
7 views

Can I add custom links to the visualforce email template

I have 2 custom links on my orders object and I am trying to put it on my Visualforce Email Template but when i try to save, it says Error: Invalid field Search_PO_Contact_Name for SObject ...
0
votes
2answers
432 views

IF THEN Statement in VisualForce Email Template

I am trying to create an If statement that will output the date of TimeclockStartDate__c if it has a value and to not output anything if the field is left bank. I am getting an error: "Syntax Error" ...
0
votes
0answers
104 views

Why is Quote2PDF visualforce page ignoring css/ html styling?

Goal: End User clicks a button on a child object's page layout that generates a PDF using merge fields from both the child and parent object records and attaches that PDF as an attachment on the child ...
1
vote
1answer
34 views

Add > in Visualforce Template Email Subject

I need to add > to the subject of Visualforce email template. Like: Wayne Enterprise > Bruce Wayne Directly adding > in the subject doesn't work. I have tried adding HTML code as shown below but ...
0
votes
0answers
37 views

Order of records retrieved

We have an visualforce email template which display all the Quote line items of the quote in a table format. We use apex:repeat with relatedTo.QuoteLineItems for this. What is the order in which the ...
0
votes
1answer
337 views

Merging Case fields into Visualforce email template?

I'm using the Messaging.SingleEmailMessage class to send an email (using a VF template), merging in some Case fields. Where do you specify what record should be used for the merge fields in the ...
0
votes
1answer
469 views

Can't we use more than one custom object in vf template?

Can't we use more than one custom object in visualforce email template?..
0
votes
2answers
91 views

What are we achieving with Visualforce templates in Salesforce

I was reading few articles about Apex Template and after reading everything I really doubt that Apex template is useful. Because as per template concept, if there is repetitive statements or code in ...
1
vote
0answers
41 views

Visualforce email template with User chosen criteria [closed]

Is there any workaround to pass some User chosen data into VF Email templates for the controller to process? I want the User to be able to choose a date range to send information about a collection ...
0
votes
3answers
425 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
1answer
145 views

User input into Visualforce Template

I want to send a VF Email template but I also want to have User inputted data. Is this possible without creating an extra object to store this additional information on? My Template will contain a ...
0
votes
1answer
48 views

Not able to add a blank space in the email attachment

I am trying to attach an ics file and I'm just not able to add a blank space between certain characters. I tried using &nbsp; and <br/> to even break the line but instead it's printing as it ...
0
votes
1answer
66 views

VisualForce Email Templates

I'm facing with VisualForce Email Templates and I need to get the email body with rendered field in order to use it somewhere else. This is an use case I've got an email whit this body "Hello {!...
3
votes
0answers
117 views

Visualforce Email Template Page Break

Is there any way to force email template to continue as a second page ? I tried "page-break-before:always" "page-break-after:always" but it does not work for me. What can i do to add page break to ...
0
votes
1answer
2k views

Can I preview visualforce email template into visualforce page?

I want to display the visualforce email template inside a panel with live preview if possible, so while I'm writing lead_name__c for example It will be bind to template where Dear recipient....
3
votes
1answer
554 views

How to avoid hardcoding of ouput link value in VF email template?

I am designing a Visualforce email template for an approval process and trying to provide a link to Salesforce for the approver. I want to avoid hardcoding of the URL to avoid a post deployment step :)...
1
vote
2answers
263 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 ...