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
PDMackinPDMackin 

How to obtain the SessionID and Server URL

I am new at this, so be nice.

I am creating an SControl that uses Javascript to call a .Net Web service.

I will need the SessionID and the Server URL to create the binding in the .Net service to make calls on the SalesForce Database.

In the Javascript I am able to obtain the Session ID Using "this.__sfdcSessionID"

How do I obtain the Server URL?

Thanks

Pat

Jon L. DaviesJon L. Davies

Normally in an S-Control you should use the following merge fields to get the values of SessionID and ServerURL.

 

Code:

{!API.Session_ID}

{!API.Partner_Server_URL_90}


 

JonD

360 Vantage
3115 S. Price Road
Chandler, AZ 85248

PDMackinPDMackin
Thanks Jon.
 
It works.
 
Pat