• randyew1
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
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
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