You need to sign in to do that
Don't have an account?
jeregar
AsyncApexJob query by non administrators, privileges problem
How can I configure a non administrator profile to access the AsyncApexJob list by the apex class. Here is the method that I need to run.
public PageReference loadJobsStatus() { this.jobs.clear(); try{ for(AsyncApexJob j : [select Id, Status, NumberOfErrors, JobItemsProcessed, TotalJobItems, CreatedBy.Name, CompletedDate, CreatedDate from AsyncApexJob where JobType = 'BatchApex' AND CreatedDate >= YESTERDAY order by createdDate desc]) { this.jobs.add(j); } }catch(Exception e){ return null; } return null; }
This loadJobsStatus method gives me 'Insufficient Privileges' when logged in by a different user than the administrator.
Thanks in advance
Jeremias
A: View Setup & Configuration
All Answers
Did you ever figure this one out?
I've hit the same problem and i'm not sure what profile checkbox needs to be checked.
Thanks,
A: View Setup & Configuration