function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Entity Definition vs Field Definition

What is the difference between entity definition and field definition in custom metadata types?
Best Answer chosen by sevindu
ajay Duggi(Heptarc)ajay Duggi(Heptarc)

Dear Sevindu,

Entity Definition : Provides row-based access to metadata about standard and custom objects.
Field Definition: Represents a standard or custom field, providing row-based access to field metadata. Contrast FieldDefinition with EntityParticle, which represents each element of a field that can be presented in a user interface. FieldDefinition has parity with metadata type Field.

Metadata relationship fields for custom metadata typesnow let you look up field definitions. Previously, you could look up entity definitions for standard and customSalesforce objects, but not a specific field on an object.The relationship to Entity Definition is the controllingfield.