function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anuj Thakur 4Anuj Thakur 4 

how to fetch the governor limits in current org

Hi All,

Need one quick help. is there any way to fetch the AsyncApex limits from org. As we know that we are having 250000 AsyncApex jobs limits for every 24 hour. after increasing it by salesforce can we verify that limit has been increased from 2.5 Lcs to some other number.
sop can we fetched that limits details by any way?
Any response will be appriciated.

Khan AnasKhan Anas (Salesforce Developers) 
Hi Chanchal,

I trust you are doing very well.

To view the limits of asynchronous Apex methods for your Org, you can log in to by providing your org credentials.

Click on Utilities -> Rest Explorer
Select GET and execute the endpoint /services/data/v43.0/limits
Once it is executed, you can see the limit in DailyAsyncApexExecutions folder.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
Khan Anas
Shubham NandwanaShubham Nandwana
Hi Anuj,
You can see limits by going to Setup->Company Information.
Other than that to get limit in the apex, use below code.
public static HttpResponse getLimitsResp() {
        HttpRequest req = new HttpRequest();
        Http http = new Http();
        String url = System.URL.getSalesforceBaseURL().toExternalForm() +'/services/data/v40.0/limits';
        req.setHeader('Authorization', 'OAuth ' + UserInfo.getSessionId());
        return http.send(req);
To get other limits like CPU time, heap memory, SOQL queries etc use methods given in the following link.
select this as best answer if it helps.

Shubham Nandwana.
AppPerfect Corp.
Salesforce Development & Operations Experts
Anuj Thakur 4Anuj Thakur 4
Hi Khan/Shubham,

Actually we had alraedy tried both of the ways. but that dint help for our requirement. later on we had a conversation with Salesforce people
and they clarified all the doubts.
BTW thanks to both of you for your quick response.