Form Component Control in Dynamics 365 / Power Apps


 




 


Form Component Control can be used to update the parent record 

Below is our custom entity/table named Sample Entity having contact’s lookup.

Form Component Control for related entity display on main form - powerapps_microsoft

Let us add one more contact field, specify the Form Component control for it

Form Component Control for related entity display on main form - powerapps_sed_02

 


 


 

We need to specify the main form to be used as a static value within the QuckForms tag.

Form Component Control for related entity display on main form - powerapps_sed_03

entityname will be the schema name of the entity and the id of the main form.

Form Component Control for related entity display on main form - powerapps_ide_04

Form Component Control for related entity display on main form - powerapps_microsoft_05

Get the form id in the classic form editor –

Form Component Control for related entity display on main form - powerapps_sed_06

 

And in the new form designer –

Form Component Control for related entity display on main form - powerapps_microsoft_07

Save and publish the change.

Form Component Control for related entity display on main form - powerapps_sed_08

We can see the main form of the contact being rendered within the custom entity’s form on the selection of Contact lookup value.

Form Component Control for related entity display on main form - powerapps_ide_09

 

Now let us look at the some of the key points –

  • Only the Main form can be considered while using form component control i.e. only the main form can have the form component control which must be the main form itself. Quick View, Quick Create, and card cannot be used.
  • The form component will only show the first tab of the form. Below is the form we have configured, but it shows only the summary tab.

Form Component Control for related entity display on main form - powerapps_microsoft_10

  • The validation of the embedded parent form still applies as shown below.

Form Component Control for related entity display on main form - powerapps_sed_11

  • Data is sent for save independently for each record, which has no defined order.
  • It is not recommended to use the form with Business Process Flow as a form component.
  • Form components cannot have another main form with form components embedded in them. Although we do not get any error, it might be unsupported.

 

Form Component Control for related entity display on main form - powerapps_sed_12

  • The same form can be used across different form components but is not supported as per Microsoft Docs. Here we have embedded the same form inside Account’s form.

Form Component Control for related entity display on main form - powerapps_microsoft_13

Get all the details here