LoginScopeHeader while accessing Salesforce API

For Enterprise WSDL, you dont have to necessarily pass Login Header! Just pass Nothing and it should work.


Dim lr As ApexApi.LoginResult
Dim ss As ApexApi.SoapClient = New ApexApi.SoapClient

' Login Call
lr = ss.login(Nothing, "hello@hello.com.au", "yourSFpassword" & "SecurityToken")

For your Information, LoginScopeHeader has two parameters:
1) Organization ID
2) Portal ID

Click here for more information on how to find above values.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: