OrgLimits Class
Contains methods that provide a list or map of all OrgLimit instances for Salesforce your org, such as SOAP API requests, Bulk API requests, and Streaming API limits.
Use the System.OrgLimits getAll and getMap methods to obtain either a list or a map of all your org limits. To get details on each limit, use instance methods from System.OrgLimit.
For comparison, the Limits Class returns Apex governor limits and not Salesforce API limits.
Limit values are updated asynchronously, in near-real-time.
See Also
The following are methods for OrgLimits.
-
Returns a list of OrgLimit instances.
-
Returns a map of all OrgLimit instances with the limit name as key.
Returns a list of OrgLimit instances.
public static List<System.OrgLimit> getAll()
Type: List<System.OrgLimit>
Returns a map of all OrgLimit instances with the limit name as key.
public static Map<String,System.OrgLimit> getMap()
Type: Map<String,System.OrgLimit>