Skip to content

Instantly share code, notes, and snippets.

@sudhakar6
Last active March 16, 2023 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudhakar6/cddcff41fcab10325ab6f901df8f87e2 to your computer and use it in GitHub Desktop.
Save sudhakar6/cddcff41fcab10325ab6f901df8f87e2 to your computer and use it in GitHub Desktop.
Code to get session and login with session ID
code to get session id:
System.debug('&######## '+ UserInfo.getOrganizationId()+''+UserInfo.getSessionId().SubString(15));
Login URL: <orgURL>/secur/frontdoor.jsp?sid=<orgSessionID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment