Description
Returns any top level meta data attribute on the specified entity.
Signature
GetEntityMetadata('entity', 'property')
Example 1
GetEntityMetadata('contact', 'ObjectTypeCode') Returns 2
Example 2
GetEntityMetaData('account', 'DisplayName.UserLocalizedLabel.Label') Returns 'Account' if the current Users' language is English
Example 3
GetEntityMetadata( 'account', 'Attributes.Address1_ShippingMethodCode.OptionSet.Options' ) Returns an entity collection containing the OptionSets
Note :please use the Metadata browser in XrmToolBox to browse all the different properties you can return.
Parameters
Name | Type | Description | Required |
---|---|---|---|
fromdate | xxxx | xxxx | xxxx |
todate | xxxx | xxxx | xxxx |
interval | xxxx | xxxx | xxxx |