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.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
Contextual grid PCF recipe
contextual-grid is a standard field control for model-driven forms. It renders rows returned by a maker-supplied FetchXML template after replacing a {recordId} token with the current record id.
Template
- Template:
field-standard - Control type: standard
- Intended field type: model-driven form field control with input properties
Host support
| Host | Designed for | Certified |
|---|---|---|
| Model-driven apps | Yes | Not certified in this release |
| Power Pages | No | Not certified in this release |
recipe.json intentionally keeps certified empty. Certification dates should be added only after live host evidence is recorded.
Configuration
The recipe patches these manifest properties:
| Property | Type | Usage | Required | Notes |
|---|---|---|---|---|
entityId |
SingleLine.Text |
input |
Yes | Bind to the current table primary key column, such as accountid. Missing values are treated as unsaved records. |
entityName |
SingleLine.Text |
input |
Yes | Set to the current table logical name, such as account. This is displayed with the unsaved-record message and keeps the documented context inputs together. |
fetchXmlTemplate |
Multiple |
input |
Yes | FetchXML containing a {recordId} token. The token is GUID-validated, XML-escaped, and URL-encoded before Web API retrieval. |
pageSize |
Whole.None |
input |
No | Defaults to 25; the control clamps maker input to 1..100. |
A maker can bind it in either designer path:
- Modern form designer: select a column, open the Components pane, add the control, then configure
entityId,entityName,fetchXmlTemplate, andpageSize. - Classic form designer: open the column's Controls tab, add the control, then configure the same properties.
Behavior
- Replaces exactly the
{recordId}token in FetchXML after validating the id as a GUID. - Calls
context.webAPI.retrieveMultipleRecordswith?fetchXml=and a page size. - Displays a table for returned row values, an empty state when no rows return, and an error state when Web API access fails.
- Renders an unsaved-record disabled state when the current record id is missing.
- Provides a Load more button when
nextLinkis returned. - Respects
security.readablefor configuration values andcontext.mode.isControlDisabledfor the displayed grid.security.editableis not used because this recipe is a read-only view and does not write outputs. - Keeps state per control instance; no module-global mutable state or hard-coded element ids.
Limits
- Model-driven apps only in this release. Power Pages support is planned separately because contextual grids require another field binding in addition to the record id input, and this release does not assume a Liquid-provided record context.
- The FetchXML must include
{recordId}and should select only the columns the maker wants to display. - The FetchXML template is maker-trusted configuration. Entity and attribute names are sent to Dataverse as configured; invalid names surface as Web API failures and are shown through the control error state.
- The table columns are inferred from the returned row keys after omitting OData annotation keys. When a
<column>@OData.Community.Display.V1.FormattedValueannotation is present, it is displayed instead of the raw value. Lookup result keys such as_parentcustomerid_valueare labeled asparentcustomerid; formatted lookup names are shown when present, and raw lookup GUIDs are not displayed. Aliased link-entity values such ascontact.fullnameare displayed as returned, but GUID-shaped aliased values without formatted annotations are hidden rather than shown as raw ids. - Offline behavior is not claimed; this recipe is designed for online Web API access.
Microsoft Learn references confirmed
- Current record context: the Power Apps component framework FAQ says PCF context does not provide the record id/table name directly and documents adding
entityIdandentityNameinput properties, bindingentityIdto the table primary key column, and settingentityNameto the logical name. - Web API availability:
WebAPIdocumentscontext.webAPIfor model-driven apps and portals. - FetchXML retrieval and paging:
retrieveMultipleRecordsdocumentsretrieveMultipleRecords(entityLogicalName, options, maxPageSize), states thatoptionscan be a FetchXML query using thefetchXmlparameter, and documentsnextLinkfor additional pages. The PCF page describes returned entities as key/value records and does not explicitly promise formatted-value annotations; the control uses@OData.Community.Display.V1.FormattedValuewhen the host returns it and keeps raw fallbacks for non-lookup values. - Standard control lifecycle:
init,updateView, anddestroy. - Lookup result shape: the model-driven
Xrm.WebApi.retrieveMultipleRecordspage documents lookup values coming back as computed_<name>_valueproperties for online scenarios. The FetchXML select columns and join tables pages document alias-qualified result names such ascontact.fullnameand show Web API alias responses with formatted-value and lookup-logical-name annotations when annotations are requested. - Manifest properties, resources, and features:
property,resources, anduses-feature.