Open Lookup Field Form in the same context of the Main Form within Dynamics 365 CRM/Power Apps

By | February 26, 2021

Introduction

With the recent wave release of Microsoft, there is a new enhancement added to enrich the adding of New or editing the existing Lookup Record from the main entity record. This feature is called Main Form Dialog (MFD). In this, if we have any lookup field on the form and we want to add or edit the existing lookup record, it will open related entity form in the same context i.e. it does not leave the current record.

When the user wants to add a new record for the lookup field entity, they can easily add it without losing previously entered information on the main form, this enriches the user experience. For example, consider a user is creating a new account and they need to add primary contact. Here, suppose the user enters some information of an account and when they try to add new primary contact, it leaves the main form and opens the contact form in the same context, so it loses account information!

With help of MFD, users can add a new contact record and associate it with an account without losing any information from the account form. Also, if a user is on the account and they wanted to open a contact form to see some information, they can easily do that and come back to the account form by just closing the contact form.

To use this feature, first, we need to do some settings. Please follow the below steps for the same.

1. Go to https://make.powerapps.com and login with your credentials

2. Then go to Data -> Tables -> Account, as shown below.

Open lookup field form in the same context of the main form

3. Once you open Account, open the form for which you need to enable MFD and then select lookup field and check the two properties checkbox as shown below.

Open lookup field form in the same context of the main form

4. Once you are done with the above settings, save and publish the form.

Now when you open the account form and click on the Primary contact lookup field, it opens up in the same context like a popup window, as shown below.

Open lookup field form in the same context of the main form

Existing contact Record:

Open lookup field form in the same context of the main form

New Contact Record:

Open lookup field form in the same context of the main form

When you want to add a new contact record, it will open the contact form as a pop-up where a user can enter information quickly without leaving the main form so that it does not lose any information from the main form.

Conclusion

With the help of the Main Form Dialog (MFD) enhancement, users can easily add and edit lookup information and enjoy an enriched user experience.

map dynamics 365

4 thoughts on “Open Lookup Field Form in the same context of the Main Form within Dynamics 365 CRM/Power Apps

  1. Tomás

    this process is bidireccional? it is available on another entities? I want to know if it´s possible to show the account information in the contact form. I tried and is not possible. Is there any other way to do it?

    Thanks!

    1. Tomás

      It works in the contact entity too. But i still having problems in case to shown the MFD of one header´s field. Why this not works on the header?

      1. Inogic

        Hi Tomás,

        It works from the header too but you need to expand the header by clicking on the button and then click on the lookup field then it works as expected. Please see the below screenshot for reference.

        Hope that helps!
        Thanks

    2. Inogic

      Yes, it is possible to show account information on the contact form but you need to make sure you enable the below settings for the Company Name field from Contact form.

      Hope that helps!
      Thanks

Comments are closed.