2

Is it possibble to access the custom settings in Email Templates directly? (I know I can refer the custom settings in formula, and then refer this formula field in the email template)

I am facing an issue where, I get a different URL in the email alert than what I see in the browser's address bar. Please refer the below question for more details:

Mismatch in Links recieved through email alerts and User getting redirected to home page

So as a last option, I was thinking to have a custom settings that will store the hardcoded URL and refer it in the Email Template. I feel that this is not a feasible solution, but I am not able to find any other solution.

6

Yes, you can access Hierarchical Custom Settings directly in Visualforce Email Templates.

{!$Setup.CustomSettingName__c.CustomFieldName__c}
1
  • So I will need to convert all my HTML email templates to Visualforce Email templates? Feb 21 '13 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.