You need to sign in to do that
Don't have an account?
NarenK
Getting complete URL of logged in SF instance
Hi All,
I need to get complete URL of the salesforce into which user logged in. Currently when I tried to get URL using ApexPage.getCurrentPage().getUrl(). It only giving me path to the page not give complete URL like https://na1.salesforce.com/testpath.
Could any one of you let me know how can I address my problem.
Regards,
Naren
You can use the getCurrentRequestUrl method of the System.URL class for this.
E.g.