You need to sign in to do that
Don't have an account?
UserInfo.getSessionId returns 'SESSION_ID_REMOVED'
Hi - I'm trying to run this script in my sandbox and getting "SESSION_ID_REMOVED" result
------
String sessionId = UserInfo.getSessionId();
system.debug('--- Session Id Value ---'+sessionId);
------
------
String sessionId = UserInfo.getSessionId();
system.debug('--- Session Id Value ---'+sessionId);
------

This was an intentional change in behavior that was deployed this week. If you need to undo this change you can request to have it disabled for a maximum of two weeks. Please file a case with Salesforce and reference W-3483424.
Thanks Gordon Engel