web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Is it possible to have...
Power Apps
Answered

Is it possible to have data from parent and child entities on the same edit form?

(0) ShareShare
ReportReport
Posted on by 14

Hello All,

 

I have spent the last couple of days trying to figure out a way to build an edit form on an embedded canvas app (On Dynamics 365 Project) with the ability to edit fields on two entities i.e. the entity on which canvas app is embedded has N:1 relationship with the other entity. The form should have interlaced fields from the both the entities. Is this possible at all?

 

Thanks

Suresh

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @sureshsatti 

     

    Any particular reason you are trying to do this using canvas app and not model driven app?

    I would suggest here a Model Driven app where the main form will be on the parent entity and then a sub grid  (Editable) for child records this is the easiest way you can edit parent and child from same form.

     

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @sureshsatti,

    Yes it possible in all the scenarios: 1) edit the parent child entities within the embedded canvas app 2) edit parent entity from parent model-driven form and child within the embedded canvas app and 3) vice-versa. In your canvas app you just need to reference the 2 entities in the datasource and configure your app accordingly. To pass parameters from the model-driven form to the canvas app use the ModelDrivenFormIntegration object.

    You can also perform this out-of-the-box with model-driven forms using FormComponentControl. It may simplify your overall solution. More info: https://docs.microsoft.com/powerapps/maker/model-driven-apps/form-component-control
    Hope this helps!

  • Suresh_Satti Profile Picture
    14 on at

    Thanks Mira, the purpose was to give the end user the experience of editing multi-entity data on a single form and the entity fields would need to be interlaced (for customers convenience) and needs to be visually formatted based on the customers needs. This is not possible on a model driven form and sub grids wouldn't be visually helpful for the end user.

  • Suresh_Satti Profile Picture
    14 on at

    Thanks Eric, I am using the thrid option in your list. Now my doubt is, what would be a preferred approach out the of the two mentioned below. These are based on my research in last couple of weeks, there is a high chance that these way not even be correct and there could be even better and more streamlined approach.

     

    1) Using an edit form and tweak the fields to point to the parent record. i.e. in my case Project is the Child entity and will be hosting the embedded canvas app and Opportunity is the Parent Entity. On the canvas app when i insert a edit form, i automatically get a list of fields from the Project entity, but dont have an option to add Opportunity fields, hence i will have to tweak the Project entity fields and point them to Opportunity (Still figuring out how).

    2) Start with a blank edit form and add all the fields along with their data type and then figure out a way to populate the fields on load and then store the fields values as those are edited on some collection and save it when submit button is pressed using patch function.

     

    In both the cases i would add two data sources i.e. Project and Opportunity tables from Dataverse.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard