Posts

Showing posts with the label email template

Salesforce Fact #756 | Show approval details in VF email template

Image
Suppose we have a requirement to show the approver name, approved/rejected status and the comments in the visualforce email template which is associated to the final approval/rejection action. We can create an apex controller, VF component to implement this and refer the same in the email template. Reference:  https://gist.github.com/douglascayers/46bb1e92be9909d60fee Attached are the screenshots.

Salesforce Fact #547 | VF email template restriction

In VF email template, the messaging:htmlEmailBody and messaging:plainTextEmailBody tags can appear only once within a template. So, if we need to render some content in the email template dynamically, we can put conditional rendering on the content inside these tags.