function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
maddy27maddy27 

{!Community_Url} merge field on Email template

How to get {!Community_Url} merge field on Email template - ( Note: This template is not used for New User or Forgot Password template)
SandhyaSandhya (Salesforce Developers) 
Hi,


When you test the email template via "Send test and verify merge fields" you cannot test any community merge fields like {!Community_Url}. You need to test "live" in the community environment, as the community info needs to be passed on to the merge field. Also, when e.g. the administrator only modifies an object in Force.com and he is not in the community environment, {!Community_Url} will be empty if an email is triggered.

Reference link.

https://salesforce.stackexchange.com/questions/173529/email-template-community-test-email
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
 
maddy27maddy27
Thanks Sandhya , but what if we try to trigger outside community.
Any idea?