Skip to content
App for monitoring Salesforce org limits
Branch: master
Clone or download

Latest commit


Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore v1 Dec 29, 2019
.prettierignore v1 Dec 29, 2019
LICENSE Initial Commit Dec 21, 2019 Modified logic for percent increases Jan 29, 2020
sfdx-project.json Removed dependency on testfactory Jan 21, 2020


App for monitoring Salesforce org limits. This app will send push notifications when you are at 80% (default) of a limit or if it increases 20% (default) or more from one snapshot to the next. By default, it snapshots limits once per hour. All options can be changed on a per limit basis.

You can also mute notifications for a certain time period or temporarily increase the alert threshold.

Installation steps

⚠️ There is a known issue that prevents users from opening process builder from unlocked packages. Until this error is fixed, you won't be able to modify them. See

  1. Clone and deploy using sfdx or as an unlocked package (
  2. If you want to send emails people or systems not in Salesforce. Update the email alerts with the correct email address.
  3. To get emails and push notifications, add users to the Limit Notification Queue.
  4. You may have to edit the two invocable processes once deployed because the process builder metadata contains the queue Id and it doesn't deploy correctly.
  5. Add Limits records for limits you want to monitor. Make the owner be the Limit Notification Queue to send an email to all members of the queue. To add all limits, run this in Execute Anonymous:
Id limitsQueue = [SELECT Id FROM Group WHERE DeveloperName = 'Limit_Notification_Queue'].Id;
Map<String,System.OrgLimit> limitsMap = OrgLimits.getMap();

List<Limit__c> limits = new List<Limit__c>();
for (String lim : limitsMap.keySet()) {
    limits.add(new Limit__c(
        OwnerId = limitsQueue,
    	Name = lim,
    	LimitKey__c = lim

insert limits;
  1. Schedule the monitoring job using Execute Anonymous. In this case, it is scheduled to run every 15 minutes:
System.schedule('Limits Monitor 1', '0 0 * * * ?', new LimitsSnapshotSchedule());
System.schedule('Limits Monitor 2', '0 15 * * * ?', new LimitsSnapshotSchedule());
System.schedule('Limits Monitor 3', '0 30 * * * ?', new LimitsSnapshotSchedule());
System.schedule('Limits Monitor 4', '0 45 * * * ?', new LimitsSnapshotSchedule());
You can’t perform that action at this time.