Skip to main content

how many records can we create in custom metadata type ? I need to create about 300 records in custom metadata type is it wise to do so ?

PS - how can we check if we are beyond the permitted limit of 10 MB for metadata or not?

5 件のコメント
  1. 2020年7月30日 2:32
    @Rinky Chawla Here is the public doc on CMDT that talks about limits -https://help.salesforce.com/articleView?id=custommetadatatypes_limits.htm&type=5

    As of today the 10 MB limit is a hard limit. To consider increasing it, is on our long range roadmap, but we will have to ensure performance on doing so, and so it is very far fetched. Having said that, look at the "Usage Calculation" section of the document that I linked. It talks about how to calculate these limits correctly. Some other best practices are -

    1. Deleting stuff no longer in use, Be aware that it might still be cached, so subscribers need to flush out any cached data for that to take effect.

    2. Prefer storing large amounts of character data in custom labels or static resources, and reference them from CMDT.

    3. Ensure you are calculating the number of chars correctly. For long text area fields only 255 chars are cached. So even if you have a 10,000 char LTA field, it would count as 255 only.