Loading
Salesforce now sends email only from verified domains. Read More
Enhance Salesforce with Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Custom Metadata Allocations and Usage Calculations

          Custom Metadata Allocations and Usage Calculations

          Understand requirements for custom metadata types and records and how your custom metadata type usage is calculated.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience

          Available in: Enterprise, Performance, Unlimited, and Developer Editions

          You can create, edit, and delete custom metadata type records from installed packages in: Group and Professional Editions

          Tip
          Tip View custom metadata type use in System Overview. From Setup, in the Quick Find box, enter System Overview, and then select System Overview. You can get information about the number of custom metadata types and the size of the custom metadata type records used.
          Description Maximum amount
          SOQL queries per Apex transaction Unlimited
          SOQL queries for custom metadata type records in flows Count toward Apex governor limits. Per-transaction limits, which Apex enforces, govern flows.
          SOQL queries containing long text area fields Count toward Apex governor limits.
          Custom metadata per organization * 10 million characters
          Custom metadata per certified managed package *

          10 million characters

          Custom metadata records in certified managed packages that you installed don’t count toward your org’s allotment. However, if the package developer removes the records from the managed package, the deprecated records remain in your org and count against your org’s allotment until you delete them.

          Custom metadata records that you create also count toward your org’s allotment. This rule applies regardless of whether you create records in your own custom metadata type or in a type from a certified managed package.

          Fields per custom metadata type or record 100
          Custom metadata types per organization

          200. This number includes all custom metadata types that originate from any source: created by a user, installed from unmanaged packages, installed from certified managed packages, and so on.

          After you reach the limit of 200, you can install an additional 150 custom metadata types only from certified managed packages for a total of 350. For example, you can create your own or install 200 custom metadata types, plus install up to an additional 150 custom metadata types from certified managed packages.

          Characters per description field 1,000
          Records returned per transaction 50,000
          Long Text Area Fields Long text area fields count toward the custom metadata 10 million characters allowed. 255 characters per long text area field count for a given type.
          Custom Metadata Types formula references allowed in a process (Process Builder) 15

          *Record size is based on the maximum field size of each field type, not the actual storage that’s used in each field. When adding fields to a custom metadata record, use the appropriate type and specify a length that doesn’t exceed what’s needed for your data. This action helps you avoid reaching the cached data maximum. For example, if you create a US social security number (SSN) field, select the Text data type, and specify a length of 9. If you select Text Area, the field adds 255 characters to the usage count for each record, regardless of the number of characters entered.

          Usage Calculation

          • Usage is calculated in characters. You can store up to 10 million characters.
          • Standard fields such as Label, Name, and Namespace are included in your usage calculation, but Description and Qualified API Name aren’t.
          • Long text area fields, up to 255 characters per long text area field for a given type, are included in the usage calculation.
          • Metadata relationship fields count as 15 characters in the usage calculation if their target is another custom metadata type, or 10 characters if the target is Entity Definition or Field Definition.
          • Picklists and checkboxes count as 10 characters.

          Retrieving Custom Metadata Type Information

          When you retrieve custom metadata type records or a count of custom metadata types, the number returned by SOQL, Apex, formulas, flows, or APIs can differ from the number in the user interface. This difference is because of the custom metadata type visibility settings and the access a user has to the type based on profiles and permissions.

           
          Loading
          Salesforce Help | Article