You need to sign in to do that
Don't have an account?
madhu_ra
AsyncApexJob object doesn't contain history records
We have scheduled batch classes implemented and monitoring them at the 'Apex Jobs' page in the setup. However it seems it's showing only very recent records and when try to retrieve from 'AsyncApexJob' object there also having only the recent records.
Is there anyway that we can retrieve old records of this table?
Is there anyway that we can retrieve old records of this table?
Batch jobs and debug log will contain maximum last 24 hours data only.
WorkAround:
Use Database.stateful in class and add all results to list string.In finish method, you can insert data to object.
You can create one custom object :
Add batch apex success or failure records into that custom object.
Sample code :
Hope this helps you.
Thanks
Varaprasad
@For Support : varaprasad4sfdc@gmail.com