December 31, 2020

How to find/filter AsyncApexJob using Submitted By and Submitted Date in Salesforce?

Sample SOQL:

SELECT COUNT(Id) FROM AsyncApexJob WHERE JobType = 'Future' AND CreatedById = '<UserId>' AND CreatedDate = TODAY

SELECT COUNT(Id) FROM AsyncApexJob WHERE JobType = 'Future' AND CreatedById = '<UserId>' AND CreatedDate = YESTERDAY

No comments:

Post a Comment