You need to sign in to do that
Don't have an account?
Neil Wylie
Security Tokens
I have developed an application in Visual Basic 6 that logs into SalesForce successfully. The application runs successfully in VB, but when I compile it and run it as a standalone prorgramme, the login fails.
With a view to understanding this problem, I have created identical applications in Access and Excel, and used the same login method as in vb - both fail. The Access application in particular uses identical code.
This problem has only arisen since Sales Force introduced the concept of concatinated passwords and security tokens.
Has anyone else had this problem, and if so, is there a workaround? Code snippets are attached.
Thanks,
Neil
Code Snippets:
'Log into SalesForce
If SampleLogin(Me.txtSF_User, Me.txtSF_Password) = True Then
MsgBox "Logged in", vbOKOnly, "SalesForce"
'CreateAccount
Else
MsgBox "Login Failed"
Unload Me
Public Function SampleLogin(Username, Password) As Boolean
Set g_SFApi = New SForceOfficeToolkitLib3.SForceSession3
SampleLogin = g_SFApi.Login(Me.txtSF_User, Me.txtSF_Password)
End Function
With a view to understanding this problem, I have created identical applications in Access and Excel, and used the same login method as in vb - both fail. The Access application in particular uses identical code.
This problem has only arisen since Sales Force introduced the concept of concatinated passwords and security tokens.
Has anyone else had this problem, and if so, is there a workaround? Code snippets are attached.
Thanks,
Neil
Code Snippets:
'Log into SalesForce
If SampleLogin(Me.txtSF_User, Me.txtSF_Password) = True Then
MsgBox "Logged in", vbOKOnly, "SalesForce"
'CreateAccount
Else
MsgBox "Login Failed"
Unload Me
Public Function SampleLogin(Username, Password) As Boolean
Set g_SFApi = New SForceOfficeToolkitLib3.SForceSession3
SampleLogin = g_SFApi.Login(Me.txtSF_User, Me.txtSF_Password)
End Function
Thanks for the reply. Yes, my password includes the original version and the security token as a concatinated string, and no, it doesn't work. As a possibly related point, I am working on a desktp and laptop - do you know if i need a separate security token for each machine, or is this simply login sensitive?
Thanks,
Neil
Neil
I think the security token is machine independent. If you include your security token with your password, I *think* you can login from *any* machine.
Jeff