+ Start a Discussion
ClintHegneyClintHegney 

Using current session of Salesforce

How can I use an active session from loging directly into Salesforce.com during integration? I have tried creating custom links that pass the API_Session_ID parameter as a query string variable, but I am not able to create successfully and use that when setting up an SforceService object using C#. Is this possible, or do I have to provide the user with a second login for any integrated pages that I create?
DevAngelDevAngel

Hi ClintHegney,

You will need to pass the session id and the api server url as merge fields to your link.  Then, you need to create a new instance of SforceService and a new instance of SforceService.SessionHeaderValue and set the session id on that.  Then set the SforceService.url to the api server url passed on the link.

That's all it takes.