Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Form component control - Loading main form even if we give customized main form's ID in xml string

(1) ShareShare
ReportReport
Posted on by 72

Hi All,

We have a requirement to use form component control in one of the related entities. We created form component control, used the newly created main form id in the xml and added it in the entity. everything looks fine but when we open the related entity records it still the default main form of parent entity.

We have added newly created main form to the app we are working already - this is not the issue.

Scenario  -  My parent entity has 2 forms ( One OOB main form, 2nd one newly created main form). We configured this newly created form ID in component control of related entity.

When my parent entity has OOB form selected, it shows the same form in related entity form controller even if the configured form ID is different. Can someone help?

pastedimage1661755966269v1.png

  • JH-18021753-0 Profile Picture
    JH-18021753-0 2 on at
    Form component control - Loading main form even if we give customized main form's ID in xml string
    I'm having the same issue, tried the component method and the XML script, same result either way.

    I've messaged support and will update if they suggest a solution.

    Frustrating.
  • Jota Sang Profile Picture
    Jota Sang 15 on at
    Form component control - Loading main form even if we give customized main form's ID in xml string
    Im having the same issue. No matter what form I enter, it defaults to the default form after some time or after something. But I have seen if briefly working, its very strange. In my case, I used the Form component, which basically doesthe same, allowsyou to pick a related field and a form, so I guess in the back its doing the same XML script.
     
    Any help or solution?
  • Suggested answer
    carlose1 Profile Picture
    carlose1 6 on at
    Form component control - Loading main form even if we give customized main form's ID in xml string
    Have you ensured that your form has been added to your app?  This isn't necessarily done by default.
     
    To check:
    1.  Go to make.powerapps.com
    2.  Click on Apps and select the ... next to the model-driven app that you want to use your form in
    3.  In the app designer, select a form
    4.  In the right hand pane, there should be a list of forms available for your model-driven app.  If the form you are using for your form component control isn't already in the app, click on the ... next to the form and click Add
    5.  Save and Publish the changes
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Form component control - Loading main form even if we give customized main form's ID in xml string

    Hi Teja,

    Yes, it's so strange!

    Maybe you can open one ticket for Microsoft Support for further help:

    admin.powerplatform.microsoft.com/support

  • Teja Narendra Profile Picture
    Teja Narendra 72 on at
    RE: Form component control - Loading main form even if we give customized main form's ID in xml string

    Hi Leah Ju,

    So there is an issue in form component control, but we couldn't figure it out. XML script is fine, formID is correctly configured, but not sure where it is breaking.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Form component control - Loading main form even if we give customized main form's ID in xml string

    Hi Teja,

    The form component control should only display a fixed form, it cannot be changed.

    The following is screenshot about my test:

    Parent entity(Account) show OOB form, but form control in the opportunity show the new created form.

    pastedimage1661852688138v1.png

  • Teja Narendra Profile Picture
    Teja Narendra 72 on at
    RE: Form component control - Loading main form even if we give customized main form's ID in xml string

    Hi Leah,

    I mean if the parent entity has the OOB form loaded, the form component showing only OOB form. If the parent entity has newly created form loaded, the form controller showing only newly created form. Is this the expected behavior? 

    Coz in my script I am calling only newly created form using the form ID, but why the form component showing OOB form.

    Below is the parent entity having 2 forms, and OOB form is loaded.

    pastedimage1661843718602v1.png

    Below is the related entity where OOB form is loaded in form component instead of newly created form

    pastedimage1661843933848v2.png

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Form component control - Loading main form even if we give customized main form's ID in xml string

    Hi Teja,

    What you want is showing new main form in the component control, right?

    But I have some confusion about the situation you are going through, the following two statements seem to be contradictory:

    if parent entity has new form loaded, its showing newly created form in component controller.

    Even if I pass the newly created main form ID in the script, it still shows OOB form when the parent entity has this form loaded.

    Will the form in the component control always be an OOB form or will it change with the selection of the main entity?

  • Teja Narendra Profile Picture
    Teja Narendra 72 on at
    RE: Form component control - Loading main form even if we give customized main form's ID in xml string

    Hi Leah JU,

    Thanks for responding.

    1.  The below highlighted form id is used in my xml script. We have created new main form in Parent entity and using the same form ID.


    pastedimage1661772796606v1.png

    Script : <QuickForms><QuickFormIds><QuickFormId entityname="my parent entity name">E5A4BFFB-FA62-4754-842C-8013FE8FCD4B</QuickFormId></QuickFormIds></QuickForms>

    2. Related entity : We have parent entity lookup, created form component controller and calling the above script.

    Issue is parent entity has 2 forms now (One OOB main form and newly created main form). When OOB form got loaded in parent entity, its automatically showing OOB form in form controller. if parent entity has new form loaded, its showing newly created form in component controller.

    Even if I pass the newly created main form ID in the script, it still shows OOB form when the parent entity has this form loaded.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Form component control - Loading main form even if we give customized main form's ID in xml string

    Hi Teja,

    Have you checked the form id is the new created form?

    You can find the table names when you navigate to the tables in make.powerapps.com, the name field shows you the system name fields of each table, which is what we need to use here. You can find the form id by opening the form. The actual form id is shown after the edit part of the URL and it ends at ‘?’ in the URL.

    pastedimage1661765492330v1.png

    Could you share screenshots about two main form url and configuration page of the form component control.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,286 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans