tag:blogger.com,1999:blog-10519044.post5655863263234963687..comments2023-04-07T03:25:58.943-07:00Comments on Jesse Lorenz: Visualforce Tip: How to Determine a salesforce.com HostnameUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-10519044.post-25626100177910128062012-09-14T00:01:53.107-07:002012-09-14T00:01:53.107-07:00I tried this. The issue is that the URL generated ...I tried this. The issue is that the URL generated is of Visualforce like <br />Contact Link: https://tr1.na12.visual.force.com/003U000000S9qXvIAJ<br /><br />Is there a way to get the URL like https://na12.salesforce.com? Without parsing it?Unknownhttps://www.blogger.com/profile/02735687093953401546noreply@blogger.comtag:blogger.com,1999:blog-10519044.post-54870589890823130512009-04-24T14:01:00.000-07:002009-04-24T14:01:00.000-07:00Jeff - Determining the host from within Apex, but ...Jeff - Determining the host from within Apex, but outside of the context of Visualforce is a bit harder. Here are some work-arounds:<br /><br /><A HREF="http://ideas.salesforce.com/article/show/10091004/Apex_method_to_identify_salesforcecom_server" REL="nofollow">http://ideas.salesforce.com/article/show/10091004/Apex_method_to_identify_salesforcecom_server</A><BR><BR><A HREF="http://Jesse Lorenzhttps://www.blogger.com/profile/06046336936903770984noreply@blogger.comtag:blogger.com,1999:blog-10519044.post-34730698882418113952009-04-23T13:05:00.000-07:002009-04-23T13:05:00.000-07:00Nice solution. Any idea how to get the url using A...Nice solution. Any idea how to get the url using Apex? The only thing I can think of is looking at the org id and see if it is our production org id.Jeff Douglashttps://www.blogger.com/profile/06244960476714752288noreply@blogger.com