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.

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

I can put a hyperlink to an Opportunity in an email template by doing:

<a href="{!LEFT($Api.Partner_Server_URL_140, FIND('.com/',$Api.Partner_Server_URL_140)+3)}/{!opportunityId}> link </a>


{!LEFT($Api.Partner_Server_URL_140, FIND('.com/',$Api.Partner_Server_URL_140)+3)

gets met the server name for the user.

This will look something like:

I want to preappend a specific packing into the domain name. Something like:

Any tips on how I could do this?

share|improve this question

If your simply linking to a Salesforce record, you don't need to apply your package prefix into the URL. This is typically required if your wanting to reference something specifically from your package, such as a page. Even then, if you have overridden the View for the object your record URL points to, the Salesforce platform will handle the redirect and namespace inclusion for you. So in short, if its just records your linking to, your fine without it! :-)

share|improve this answer

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.