getPrimaryAttributeValue (Client API reference)

Applies to Dynamics 365 for Customer Engagement apps version 9.x

Gets a string for the value of the primary attribute of the entity.

Syntax

formContext.data.entity.getPrimaryAttributeValue();

Return Value

Type: String.

Description: The name of the entity.

Remarks

Each entity has one string attribute that is designated as the PrimaryNameAttribute. The value for this attribute is used when links to the record are displayed.