Is there a way for me to get salesforce instance URL from Java?
I was looking for something similar to System.Url.getSalesforceBaseUrl() in Apex, but I couldn't find anything suitable in Metadata or SOAP API.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
URL of the endpoint that will process subsequent API calls. Your client application needs to set the endpoint.
URL of the endpoint that will process subsequent metadata API calls. Your client application needs to set the endpoint.
If you already have the serverUrl then you can just take the domain part of it.