Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

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

{!$Setup.CustomSettingName__c.CustomFieldName__c}
share|improve this answer
    
So I will need to convert all my HTML email templates to Visualforce Email templates? –  Shailesh Deshpande Feb 21 '13 at 5:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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