function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
muthuswimuthuswi 

How to get serverURL for SSL servers.

hi
 
i'm trying to get server url from LoginResult object. my application works fine as long as i am logging in for servers..na0, na3,...but when it comes to ssl. i'm not getting the server url with ssl. it returns with na0, and my browser fails with that url.
 
for instance,
 
for my userid and password, from my client application i'm getting url like:
 
 
whereas when login salesforce site using same login and password, i am getting like:
 
 
could anyone help me on this?
 
thanks
 
muthu.
 
SuperfellSuperfell
You should not be trying to determine app server URLs from the API server URLs, if you want a URL to the app server, you should call describeSObject on a primary object (like account or task) and look at one of the resulting URL properties.