Documentation: $API Variable Methods
String SessId = Userinfo.getSessionID();
Note: The session ID generated in the Visualforce page will not be the same as Userinfo method.
1 thought on “Get the Salesforce Session ID”
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.