+ 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.