Get the Salesforce Session ID

20 Oct

Visualforce

Documentation: $API Variable Methods

Apex

Salesforce Documentation:
UserInfo Methods

Note: The session ID generated in the Visualforce page will not be the same as Userinfo method.

One Reply to “Get the Salesforce Session ID”

  1. Hi Dave – Thanks for that, I created a VF page to get my session ID and I needed to insert an underscore:
    {!$Api.Session_ID}

Comments are closed.