You need to sign in to do that
Don't have an account?
RP@Transera
Programatically Determine a Customers SFDC Instance
We've integrated the SFDC APIs into our java applet. What I'm trying to do is minimize the around of configuration information that we have to retain for a user.
My question is there a way from the API to determine my instance? i.e. 'na1, na2, etc.' when I build my URL to pop screens?
We've looking in the API and we don't see it in the user or binding objects.
This is a sample URL that were using.
BTW if you think about it, if there was an API call available that told you this, it wouldn't be useful as you need to know the instance before you can make an API call.
Message Edited by SimonF on 05-22-2006 04:07 PM
"BTW if you think about it, if there was an API call available that told you this, it wouldn't be useful as you need to know the instance before you can make an API call."
If you want the URL to an object to pop the UI, then call describeSObject for the particular object type and look at the urlEdit, urlDetail, urlNew values it returns. see http://www.sforce.com/us/docs/sforce70/wwhelp/wwhimpl/common/html/wwhelp.htm?context=sforceAPI_WWHelp&file=sforce_API_calls_describeSObjects_DescribeSObjectResult.html#wp3133088
Thanks! We will still have to remove the tail end of the field because it has a little extra but that's no problem at all!
VB.net example. We have a java version too.
Dim x As sforce.DescribeSObjectResult
x = Binding.describeSObject("Case")
Debug.WriteLine("urlEdit field." & vbCrLf & x.urlEdit)