0

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 variables directly in custom label

Consider the following custom label:

To set up your profile, ask a question, or contribute an answer head to {!$Network.NetworkUrlForUserEmails}

Unfortunately in an email template, the {!$...} is placed literally in the email. Is there a way around this?


2. Include anchor tag as <apex:param> in a <apex:outputText>

Is it possible to do something like:

<apex:outputText value="{!$Label.Email_WelcomeToCommunity}">
    <apex:param value="{!$Network.NetworkUrlForUserEmails}"/> <!-- Pass URL here that's clickable in email -->
</apex:outputText>

I've tried the above but get an error: The value attribute on <apex:outputText> is not in a valid format.

2
  • Just to clarify, you are indeed using a Visualforce template and not a Plain Text or HTML template, right?
    – sfdcfox
    Commented Jul 3, 2021 at 0:52
  • Correct! This is a Visualforce template. Commented Jul 5, 2021 at 19:06

0

You must log in to answer this question.