Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search
    custom metadata

    What Is Custom Metadata type In Salesforce – All You Need to Know

    Ayush Jun 2, 2020
    13,063  Views

    Salesforce has added Custom metadata Setting types on the platform in In Summer 15

    Custom metadata type is Similar to custom setting and custom objects except for this deployable environment. In Custom metadata type records are considered metadata rather than data. You don’t need to import or export data, instead, we can deploy. Your reusable functionality reads your custom metadata type and makes use of it to produce customized application behavior. All custom settings facts are exposed inside the utility cache, which permits efficient access without the value of repeated queries to the database. Custom settings are stored in cache memory means easy to access your query on metadata it will not count with governor limits. With the help of custom metadata, we easily avoid hardcoded id.

     With the help of  Metadata API to perform updates and create tasks programmatically.

    Protected custom metadata types and public custom metadata types both behave like public custom metadata when they are outside of a managed package. 

    dont miss out iconDon’t forget to check out: An Introduction to Salesforce Force.com Migration Tool (ANT)

    Advantage of custom metadata Type

    • Page layout can be used in Custom metadata type.
    • Validation Rules can be used in the Custom meta type .
    • We can create Lookup relationships to other custom metaData types like custom objects.
    • We can create easily picklist fields in custom metaData type.
    • There is no Governor limit in SOQL query.
    • Datastore in cache memory which increases the performance of the organization.
    • Custom metadata types are noticeable in test class without “SeeAllData” annotation.
    • Custom metadata are readable for all profiles, including the guest user in a public case.
    • Custom metaData types return 50,000 records per transaction.
    • There is no limit for SQL query per transaction.
    • 100 records or fields per custom metaData.

    Disadvantage of custom metadata Type

    • Like custom setting, custom metaData type also don’t have an option to create a custom tab.
    • Custom metaData type Need to query to get data.
    • Custom metaData type does not support formula field data types.
    • Custom metaData type does not support Global picklists.
    • A single Organization can Only allow to create 100 Custom Metadata Types.

    Get Custom metaData type data

    List <exmpl_mdt> sobject =   [ select Name from exmpl_mdt];

    dont miss out iconCheck out another amazing blog by Ayush here: How to Use Custom Settings in Salesforce | The Developer Guide

    Difference between Custom metadata type and Custom setting

        Custom metaData          Custom setting
    • Query required in custom metaData types 
    • Custom metaData is easy to deploy
    • Custom metaData types allow validation rule, picklist field, page layout 
    • 100 records or fields per custom metaData.
    • Size of Custom metadata records cannot be  10MB.
    • No query required in custom Settings
    • Custom setting is easy to access
    • Custom setting allows different data for a different set of a user by hierarchical custom setting
    • Only 300 fields allowed in a custom setting
    • Tab cannot be created in custom settings

    Steps for custom metaData types

    Go to Setup > Quick find Box >  Enter Custom  metaData type>

    Click  New > For Label Enter “your Choice” and for Object Enter “Your choice” and save.

    References: blog.bessereau, iseesystems.com, success.salesforce.com

    Categories: Others
    Tagged: Application, Custom Metadata, Custom Metadata Type, Custom Objects, Custom Settings, Developer Guide, Export Data, Global Picklists, Metadata, Metadata API, Metadata Type, Migration Tool, Salesforce, Salesforce Force.com, SOQL Query, Summer 15

    Get listed your company

    Have an innovative Salesforce solution that delivers faster, smarter results?
    Join the Marketplace

    [adinserter block=”16″]

    best salesforce consultants
    best salesforce consultants
    best salesforce consultants
    salesforce consultants

    [adinserter block=”10″]

    salesforce consultants

    [adinserter block=”10″]

    salesforce consultants

    [adinserter block=”10″]

    salesforce consultants

    [adinserter block=”10″]

    salesforce consultants
    salesforce consultants

    [adinserter block=”10″]

    salesforce consultants
    salesforce consultants
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.