A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
Lookup dropdown PCF recipe
Lookup dropdown replaces a model-driven app lookup field with an accessible <select> that lists
configured target rows and writes the chosen lookup value back through the bound lookup column.
Template and hosts
- Template:
field-standard - Designed for: model-driven apps — not certified in this release
- Power Pages: not supported because
Lookup.Simpleproperties are available only for model-driven apps.
Maker configuration
Bind lookupValue to a single-table lookup column and set targetTable to that lookup target
table's logical name, such as account. Add the component in the modern form designer from the
Components pane, or in the classic designer from the field's Controls tab.
The control reads the target table from targetTable, then discovers the primary id column and
primary name column from context.utils.getEntityMetadata. Set selectableFilter to an OData
$filter fragment for rows the dropdown should show, for example the target table's active-row
predicate. If you leave it blank, the dropdown lists rows without an active-row filter. The recipe
intentionally does not hard-code statecode eq 0 because the active predicate must come from maker
configuration or documented metadata.
If targetTable does not match the selected lookup value's entityType, the control shows a
configuration error instead of loading options. This keeps the configured table consistent with the
bound lookup without relying on undocumented lookup-property methods.
Behavior and limits
- Loads target rows with
context.webAPI.retrieveMultipleRecordsusing explicit$select, the optional configuredselectableFilter, page size, andnextLinkpaging. - Keeps an already-selected inactive record visible so users can see and clear the existing value.
- Returns
LookupValue[]fromgetOutputs()when selected, or an empty array[]to clear the lookup (undefinedwould leave the previous value in place). - Does not notify the host when the selected value is unchanged.
- Shows disabled, unreadable, non-editable, loading and permission-failure states.
- Works on unsaved forms because it never reads a current record id.
- Requires
targetTable; Learn documents datasetgetTargetEntityType(), but the PCF Learn lookup property references fetched for this recipe did not document a lookup-property target-table method. - Online model-driven app use only; offline behavior is not claimed in this release.
- Certification is empty until live model-driven app lanes record evidence.
Learn documentation confirmed
propertymanifest element: documentsLookup.Simpleas a propertyof-typefor model-driven apps.LookupValue: documents the lookup output shape:id,nameandentityType.StandardControl.getOutputs: documents that bound properties return values fromgetOutputs()by manifest property name.retrieveMultipleRecords: documentscontext.webAPI.retrieveMultipleRecords(entityLogicalName, options, maxPageSize),$select,$topandnextLinkpaging.getEntityMetadata: documentscontext.utils.getEntityMetadata(entityName, attributes)for model-driven apps.EntityMetadata: documents lower-camel metadata properties includingprimaryIdAttribute,primaryNameAttributeandmetadata.