Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

Your Answer


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.