You need to sign in to do that
Don't have an account?
sfdcchampions
InstallHandler Userinfo.getSessionId() is null
Manage Package creates a schedule job using InstallHandler class. Now this schedule job is created from a ghost user and here we need sessionid to get a report related records.But the issue is the Userinfo.getSessionId() is returnign null.
Shashank (Salesforce Developers)
Please see if this article explains it: https://help.salesforce.com/apex/HTViewSolution?urlname=Guest-user-session-id-returned-NULL-in-UserInfo-getSessionId-starting-Winter-15&language=en_US
Shashank (Salesforce Developers)
Actually, this may be a more useful one: http://salesforce.stackexchange.com/questions/32607/installhandler-runs-under-a-special-ghost-user-what-rights-does-it-have