Last Updated on March 26, 2022 by Rakesh Gupta
Big Idea or Enduring Question:
- How to track your organization’s daily maximum and the remaining allocation limits?
Objectives:
After reading this blog, you’ll be able to:
- Understand maximum and remaining allocated limit
- Track all limits in one place via REST API
Business Use case
Jestilla Zetkin is working as a System administrator at Gurukul On Cloud (GoC). She has received a requirement from her project manager to find out the remaining quota for DailyWorkflowEmails.
Understand Limit Resource
Let’s take a pause here, familiarize yourself with the Limits REST API resource. It contains information about the specific limit for the particular governor, such as the number of calls of a method or the amount of heap size remaining.
The resource returns these limits:
- ActiveScratchOrgs
- AnalyticsExternalDataSizeMB
- BOZosCalloutHourlyLimit
- ConcurrentAsyncGetReportInstances
- ConcurrentEinsteinDiscoveryStoryCreation
- ConcurrentSyncReportRuns
- DailyAnalyticsUploadedFilesSizeMB
- DailyFunctionsApiCallLimit
- DailyApiRequests
- DailyBulkApiBatches
- SalesforceDX Namespace Registry
- DailyBulkV2QueryFileStorageMB
- DailyBulkV2QueryJobs
- DailyDurableGenericStreamingApiEvents
- DailyDurableStreamingApiEvents
- DailyEinsteinDataInsightsStoryCreation
- DailyEinsteinDiscoveryPredictAPICalls
- DailyEinsteinDiscoveryPredictionsByCDC
- DailyEinsteinDiscoveryStoryCreation
- DailyGenericStreamingApiEvents
- SalesforceDX Namespace Registry
- DailyStandardVolumePlatformEvents
- DailyStreamingApiEvents
- SalesforceDX Namespace Registry
- DailyWorkflowEmails
- DataStorageMB
- DurableStreamingApiConcurrentClients
- FileStorageMB
- HourlyAsyncReportRuns
- HourlyDashboardRefreshes
- HourlyDashboardResults
- HourlyDashboardStatuses
- HourlyLongTermIdMapping
- HourlyManagedContentPublicRequests
- HourlyODataCallout
- HourlyPublishedPlatformEvents
- HourlyPublishedStandardVolumePlatformEvents
- HourlyShortTermIdMapping
- HourlySyncReportRuns
- HourlyTimeBasedWorkflow
- MassEmail
- MonthlyEinsteinDiscoveryStoryCreation
- MonthlyPlatformEventsUsageEntitlement
- Package2VersionCreates
- Package2VersionCreatesWithoutValidation
- PermissionSets
- PrivateConnectOutboundCalloutHourlyLimitMB
- SingleEmail
- StreamingApiConcurrentClients
Guided Practice (We-do):
To find the maximum and the remaining allocation limits for your org, we will use Workbench. Perform the steps below:
- Open the Workbench and log in with your Trailhead playground username and password.
- Make sure that you’ve selected the Production for Environment option.
- Navigate to Utilities tab and select the REST Explorer option.
- Select the following options:
- Check out the respective limits in the response body.
Formative Assessment:
I want to hear from you!
What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? Feel free to share in the comments below.