String sessionId = UserInfo.getOrganizationId()+''+UserInfo.getSessionId().SubString(15);
Get Session Id using Apex in Salesforce
Biswajeet
February 12, 2015 4 Comments on Get Session Id using Apex in Salesforce