function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EricGEricG 

Login using SessionID

Looking at the methods available in the Toolkit, I see there is a login method which requires a username and password.  Is there a way to login using a SessionID?

EricGEricG

I figured out how to do this.  I can simply set the SessionID and ServerURL based on values passed via a weblink to my web page.

 

Public oSFDC As SForceOfficeToolkitLib.SForceSession

Sub ConnectViaSession(vSessionID As String, vServerURL As String)

   Set oSFDC = New SForceOfficeToolkitLib.SForceSession

   oSFDC.SessionID = vSessionID

   Call oSFDC.SetServerURL(vServerURL)

End Sub

JefeWigumJefeWigum
Hello EricG

I ahve tried this but when I'm supposed log in, I get an error when I try to access to any data from Sales Force. The error is MIssmatched Tag. Do you know ahy it can occurs?
foghornfoghorn
What is the exact error you recieve?

What is the server url you are setting?