How to Get Org Limit for Daily Maximum Apex Test Classes in Salesforce

How to Get Org Limit for Daily Maximum Apex Test Classes in Salesforce
In this blog, you will learn how you can retrieve org limits for daily maximum apex test classes in salesforce.

Use the new DailyAsyncApexTests limit that represents the number of Apex test classes that can be queued in a 24-hour period. 

This limit is available in API version 56.0 and later.

To obtain the org limit value by execute below any one Apex methods 

  • OrgLimits.getAll()
  • OrgLimits.getMap()
  • /services/data/v56.0/limits/ via HTTP

Follow below simple steps

  • Go to Setup
  • Open Developer Console
  • Go To Debug menu
  • Select Open Execute Anonymous Window from dropdown

For(System.OrgLimit org: OrgLimits.getAll()){
   System.debug(org);
}

  • Click on Execute


Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0