You need to sign in to do that
Don't have an account?
OnDem Dev
Embedding URL in Visualforce Email Template.
Hi,
I am creating Visualforce Email Template. In that i want to construct the URL using a custom object.
For example : <<URL of the org>>/Object.id
How can we get the current orgs URL as different orgs have different domains like na1, na2, tapp0 ?
Can anyone help me in getting the organizations URL?
Regards,
Imran
This has been asked several times, but I've not seen/found any way of doing this.
My workaround is to create a custom setting containing the base server address and remember to change this when I refresh a sandbox.
All Answers
This has been asked several times, but I've not seen/found any way of doing this.
My workaround is to create a custom setting containing the base server address and remember to change this when I refresh a sandbox.
This can be done using <Object Name>.Link
Works for all objects and for both Text and HTML templates.
See example below: