You need to sign in to do that
Don't have an account?
randyew1
SForceOfficeToolkit
I'm using version 2.0 of the SForceOfficeToolkit in a VB.NET application. I can programmatically log in to our production site. What I want to do is log in to our sandbox programmatically.
sf = CreateObject("SForceOfficeToolkit.SForceSession")
sf.Login("xxx@companyname.com","pw", False)
This works fine against our production. The following properties are populated:
sf.ServerURL
sf.OrganizationName
sf.SessionID
etc.
My question is, how do I get this code (or what do I need to add to this code) to get the SForceSession to point to our sandbox?
I thought of this, but it does not seem to work.
sf.SetServerUrl("https:tapp0.salesforce.com/005T0000000nLJo") ' url of our sandbox
The properties above are not populated, even though the login seems to work.
It seems like SForceSession needs to be configured somehow to point to the sandbox, but I don't know how.
Any help is appreciated.
Thanks,
Randy
Message Edited by jmarinchak on 07-25-2008 05:37 AM
You would think that would work, but for some reason, it doesn't. I'm now using that URL and my sandbox login, but still no luck.
The sf properties are still null.
It could be that my login string is incorrect, but I wouldn't know, because no exception is thrown, no matter what I set the string to be. I am using the same login that I use to directly log into the sandbox.
It's only when I execute this statement that I get an exception:
o = sf.CreateObject(sSFTableName)
Message Edited by jmarinchak on 07-26-2008 02:09 AM