Monday 11 May 2020

Salesforce Storage/Org Limits Monitoring/Apex Governor Limits

Apex Governor Limits -

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000G7gvMUAR

Get org wide usage/limit using System.OrgLimits.getMap() then show them with progress bar.

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000GB0jYUAT

Run the below code from developer console -
 Http http = new Http();
        HttpRequest httpReq = new HttpRequest();
        HttpResponse httpRes = new HttpResponse();
        httpReq.setMethod('GET');
        httpReq.setHeader('Authorization', 'OAuth ' + UserInfo.getSessionId());
        httpReq.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+ '/services/data/v48.0/limits/');
        httpRes = http.send(httpReq);
        //return httpRes.getBody();
       system.debug(''+ JSON.serializePretty( JSON.deserializeUntyped(httpRes.getBody())));
 

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I should assert barely that its astounding! The blog is informational also always fabricate amazing entitys. Sincerly René

    ReplyDelete