Create Session Id in Salesforce Using Anonymous window

By | August 9, 2020

Here we are going to learn how to create session id in salesforce.

>> Go to Developer console

>> Open Anonymous window

>>Write below code

System.debug(UserInfo.getOrganizationId()+''+UserInfo.getSessionId().SubString(15));

>> Then execute the window

>> We will get debug log and copy the id like below image

>> Copy Id Paste on below code on notepad.

https://domainname.lightning.force.com/secur/frontdoor.jsp?sid=00D0o000001RLb5EAG!AQkAQLOJnwVasFxxg9Yqqe2JWnMuSWcnoTc5U64WOWW7JtEABIboVgfVnawr9mZTee1.imSC1WLCd0biqV7oJV_yHmuF2JLC

>> Replace domainname to your salesforce domain name.And Replace Id to your debug log id.

>> URL paste to other Browsers then directly open Org. And It will be not shown in Login history.

Note: session id will be expired within 24 hours.

Share this...
Share on Facebook
Facebook
Email this to someone
email

Leave a Reply

Your email address will not be published. Required fields are marked *