---
schema_version: "1"
id: 8671a702cf9847c6eb1dc8e32a8fd53114f929a0671b547be5294f274487a38b
title: EntityLimit
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_entitylimit.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_entitylimit.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: feef4822c24bfb6e150b83286301ae6a0a8fb12d2c59f2630b4bc4384856deb4
description: Represents the limits for an object as displayed in the Setup UI.
---
# EntityLimit

Represents the limits for an object as displayed in the Setup UI.

This object is available in API version 34.0 and later.

## Supported SOAP Calls

query()

## Supported REST HTTP Methods

GET

## Limitations

[SOQL Limitations](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/reference_objects_soql_limits.htm "Some Tooling API objects have SOQL limitations. These limitations apply to any Metadata Catalog query, which applies to all Custom Metadata Types and Metadata Catalog entities, not only the ones explicitly listed.")

[SOSL Limitations](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/reference_objects_sosl_limits.htm "Two Tooling API objects, EntityDefinition and FieldDefinition, have some SOSL limitations. ExternalString and MetadataComponentDependency (Beta) don’t support SOSL searches.")

## Fields

| Field | Details |
| --- | --- |
| DurableId | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier for the field. Always retrieve this value before using it, as the value isn’t guaranteed to stay the same from one release to the next. Use this field to simplify queries.



 |
| EntityDefinition | 

Type

EntityDefinition

Properties

Filter, Group, Sort

Description

The object to which these limits apply.



 |
| EntityDefinitionId | 

Type

string

Properties

Filter, Group, Sort

Description

ID of the object to which these limits apply.



 |
| Label | 

Type

string

Properties

Filter, Group, Sort

Description

The label of the object to which these limits apply.



 |
| Max | 

Type

int

Properties

Filter, Group, Sort

Description

The maximum number of objects that the organization is allowed to have.



 |
| Remaining | 

Type

int

Properties

Filter, Group, Sort

Description

The number of objects still available. For example, if the limit on custom objects is 100, and you create 75, this value is 25.



 |
| Type | 

Type

string

Properties

Filter, Group, Restricted picklist, Sort

Description

What type of component the limit applies to:

- ActiveLookupFilters
- ActiveRules
- ActiveValidationRules
- ApprovalProcesses
- CbsSharingRules
- CustomFields
- CustomRelationship
- RollupSummary
- SharingRules
- TotalRules
- VLookup





 |