How to access Submitted date of apex jobs because it is not a standard field of asyncapexjob ?


You can easily access this info using SOQL. There is an object called AsyncApexJob that contains information about Apex jobs. It will hold several types of jobs (like unit tests, scheduled jobs, etc.). It has a CreatedDate timestamp which you can use to find out when your job was submitted.

select  ApexClass.name, CreatedDate, JobType, LastProcessed, MethodName, ParentJobId, Status 
from    AsyncApexJob
where   ApexClassId in
    (select id 
     from   ApexClass)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.