/AssociationTableControl

Microsoft Power Apps Component Framework (PCF) Control to visualize and work with custom Dataverse association/joint tables on Dynamics 365 (model-driven Power Apps) forms.

Primary LanguageTypeScriptMIT LicenseMIT

Overview

This control provides a nice UX to work with custom Microsoft Dataverse association (aka joint or many-to-many) tables on model-driven Power Apps (D365) forms.

There are several advantages to using custom Microsoft Dataverse tables to implement many-to-many relationships in Microsoft Dataverse. For more information and examples please read this post.

Data structure model for this control:

Installation

You can either take source code and embed it to your DevOps process (if planning to modify the control) or install a ready-to-use solution. You can find it in Releases Folder.

Configuration

On the string (Single Text or Multiline Text) you can go to the Field Properties > Controls > Add Control.

Configuration Parameters Description

ParameterDescriptionExample
Selector TableName for the Selector Table to show records to choose from in UIcrmvet_table2
Selector LabelLogical Name for the Selector Table field to be used as a Label in UI for selector itemscrmvet_uilabel
Association TableName for the Association Table (aka N:N Table) where joint/association records are storedcrmvet_table1_table2_association
Lookup to Associated TableSchema Name of the lookup to the associated/target table in the joint/association table (N:N)crmvet_Table2Id
Lookup to Current TableSchema Name of the lookup to the current table in the joint/association table (N:N)crmvet_Table1Id
Default FilterDefault Filter for Selector Table to define what records would be visible in UIstatuscode eq 1
Visibility ToggleShow or Hide in UI Selector Values. Useful if due to the number of options PCF takes too much space on a formYes/No