setEntityTypes (Client API reference)

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

Sets the types of entities allowed in the lookup control.

Control types supported

Lookup control

Syntax

formContext.getControl(arg).setEntityTypes([entityLogicalNames]);

Parameter

Name Type Required Description
entityLogicalNames Array of String Yes Specify the logical name of the entities allowed in the lookup control.

getEntityTypes