Retrieves information about the attributes of a Microsoft Dynamics CRM entity. This information includes the logical name, display name, and type of the attribute.

If an attribute contains a Boolean, status, picklist, or state value, the function returns a comma-separated list of option and display values.

The DescribeMscrmEntityAttributes() function has one parameter:

  • entityName (string): Required. The name of the Microsoft Dynamics CRM entity to retrieve attributes from.

This example retrieves information about the attributes of the Lead entity in Microsoft Dynamics CRM.

The example outputs a table that provides the field name, display name, field type, required status, and field options for each attribute in the Lead entity.