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

{!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) 

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 and he is not in the community environment, {!Community_Url} will be empty if an email is triggered.

Reference link.
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Thanks Sandhya , but what if we try to trigger outside community.
Any idea?