function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gaurav.sfdcgaurav.sfdc 

Session ID for ghost user

How to get a session Id for ghost user? The seesion Id is needed to Pull report via Ananlytics API which needs sessionID. The Job is scheduled via Install handler. I have seen many post where I can see that ghost user does not have session Id, But what can be the alternative? We have a manged package which uses report data in Job. Is there any fake session Id than can be created and used. A post says using oAuth token but dosent sounds good

Any help would be appreciated
ShashankShashank (Salesforce Developers) 
The Analytics API requires session Id, but the same functionality is exposed in Apex via the namespace Reports. Did you try this?