Activity Forums Salesforce® Discussions Custom Metadata Types in salesforce

  • Avnish Yadav

    Member
    August 29, 2018 at 12:15 pm

    Hi Shradha,

    Custom Metadata types represent the metadata associated with a custom metadata type.

    A custom metadata type is defined as a custom object and is stored in the objects folder. Custom metadata types have a suffix of __mdt (instead of __c for custom objects). Custom metadata type field names have a suffix of __c, like other custom fields. Custom metadata type field names must be dot-qualified with the name of the custom metadata type to which they belong.

    Names of custom metadata types must be unique within their namespace. All custom metadata types belong to the CustomMetadata namespace and can optionally belong to a second namespace. In your organization, you can use custom metadata types with your namespace and also other organizations’ namespaces.

    Thanks.

  • shariq

    Member
    September 19, 2018 at 12:24 am

    Hi,

    Custom Metadata Types (CustomObject)
    Represents the metadata associated with a custom metadata type.

    To create custom metadata types, you must have the “Author Apex” permission. Apex code can create, read, and update (but not delete) custom metadata records, as long as the metadata is subscriber-controlled and visible from within the code's namespace. You can edit records in memory but not upsert or delete them. Apex code can deploy custom metadata records, but not via a DML operation. Moreover, DML operations aren’t allowed on custom metadata in the Partner or Enterprise APIs. Customers who install a managed custom metadata type can’t add new custom fields to it. With unpackaged metadata, both developer-controlled and subscriber-controlled access behave the same: like subscriber-controlled access.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos