You need to sign in to do that
Don't have an account?

Email Template with Site Fields
Hi,
I have created a email template and added site's custom web address as {!Site.TopLevelDomain}.
This email template is used to send email alert through a workflow.
This workflow will get fired as a result of some custom action(field update) through website.
I am receiving the email but without the custom web address of the website.
I have tried with some other fields like {!Site.UrlPathPrefix}, {!Site.Subdomain}
but it doesn't display any thing within email template as a result of these fields.
For the time being i have hard coded this url within the email template. But I want to remove this hard coded url.
Is there any thing else which need to be provided?
If any one have any idea please tell me.
Hi,
If you want to get siteURL for the current request through merge fields you can access that through site global variables viz:-
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi Ispita,
Thanks for you suggestion.
I think you have listed the merge fields for the visual force page.
The field which you have listed are not present in the dropdown list while creating email template.
I want to show the website url for my sandbox and production edition through merge fields within email template. Without changing email template it should work fine for both environments.
If you have any other solutions then please do let me know.
Thanks,
Amit Ashtekar
did you ever get an answer to this, I am trying to do something simular, I have a email template that will go out to a contact with a link back to the site, I am trying to get the site domain name. I can mainly type it but its different in sandbox then production, there has to be a global variable that can be pulled for this.
I have not received any answer to this question.
If you find the solution for it then, please tell me.
Hi amitashtekar,
Did you get any solution for this. Or any workaround?
I am stuck in the same situation.
Thank you.
-Avinash
Hi Avinash,
I was not able to find any solution on it.
I have made it hard coded as for the time being.
If you find any solution please let me know.
Thanks!
<a href="{!LEFT(CurrentRecord__c.Link, LEN(CurrentRecord__c.Link) - 15)}{!CurrentRecord__c.RelatedRecordID__c}">{!CurrentRecord__c.RelatedRecord__c}</a>