Newer Version Available

This content describes an older version of this product. View Latest

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

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

SOQL Limitations

This object doesn't support some SOQL operations.

COUNT()
Example Query: SELECT COUNT() FROM EntityDefinition
Error Returned: The "DurableId" field is of type number, but the value from the external data source is "Account.SearchResult". Contact your administrator for help.
GROUP BY
Example Query: SELECT COUNT(qualifiedapiname), isfeedenabled FROM EntityDefinition GROUP BY isfeedenabled
Error Returned: The requested operation is not yet supported by this SObject storage type, contact salesforce.com support for more information.
LIMIT, LIMIT OFFSET
Example Queries:
SELECT qualifiedapiname FROM EntityDefinition LIMIT 5
SELECT qualifiedapiname FROM EntityDefinition LIMIT 5 OFFSET 10
An incorrect result is returned because LIMIT and LIMIT OFFSET are ignored.
NOT
Example Query: SELECT qualifiedapiname FROM EntityDefinition WHERE qualifiedapiname!='Account'
Error Returned: Only equals comparisons permitted
OR
Example Query: SELECT qualifiedapiname, keyprefix FROM EntityDefinition WHERE isdeletable=true OR (isfeedenabled=false AND keyprefix='01j')
Error Returned: Disjunctions not supported