Get the Salesforce Session ID

20 Oct



Documentation: $API Variable Methods


String SessId = Userinfo.getSessionID();

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:

Comments are closed.