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.

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>

where

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

https://na9.salesforce.com/

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

https://mypackage.na9.salesforce.com/

Any tips on how I could do this?

share|improve this question

1 Answer 1

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

 
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.