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:

        subject="{!format($Label.GDPR_Contributor_Email_Notification_Subject, relatedTo.Owner.Name)}"
        recipientType="Contact" relatedToType="Opportunity">
    <messaging:htmlEmailBody >

So, when trying to use format and saving I see the following error:

Error: Unknown function FORMAT. Check spelling

Any idea why I can not use the format function inside a Visualforce Email Templates and workarrounds?

Am I doing something wrong?




You must log in to answer this question.