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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Bulk create with One-t...
Power Apps
Answered

Bulk create with One-to-Many (1:N) relationship

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All, 

 

I'm trying to implement a Bulk Create option in a model driven app. 

 

We have 2 entities(Order & Positions)  in 1:N relationship. 

 

One Order can have multiple Positions assigned to it. 

 

Any idea how a bulk create option can be implemented for such structure? 

 

Best thing I came up for now is build a canvas app that can handle the bulk create by patching & relating the records in the tables. However, the issue is that when the canvas app is embeded in the model driven form, you actually need to create the item in the database in order for the app to appear.

 

Tried also with a custom page, but I'm not able to find a way to display a dropdown on a custom page, and that is needed.

 

Any feedback is appreciated! 

Categories:
I have the same question (0)
  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    When you create one order you want to create N related position records? Or is this relation already set somewhere?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi jcfDaniel, 

     

    Yes, I want to create from a single screen multiple orders and all the related N positions for each order.

     

    The order and position details are entered by the user. Afterwards they should click on "Create" and all the records & relations between them should be created in the two Dataverse tables. 

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    You should be able to it in a form with a subgrid. Create the order and then add the details in the subgrid.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That works for creating a single order with multiple sides. However I'm looking for a way to create multiple records in both tables at once.

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    You want to create several orders at once? And they all share the same details?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, we want to create several orders at once. They don't share the same details. In addition, every order will have positions entered for it. 

     

    So, at one screen the user should be able to enter multiple orders, enter the multiple positions for each order and create them with a single button press. 

     

    Best thing I came up with is a Canvas app that uses two collections in galleries and a very, very long Patch() setup for both tables in Dataverse. 😄 

     

    I'm looking for a way either to embed the canvas app somewhere in the UI of the model driven app, where it can be used, or use a native model-driven app component that can achieve the same result.

     

    Embeding the canvas app on the form does not work in my case, as you need to create an actual item in the database, before the app is rendered/presented on the form.

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Embedded Canvas/Custom seems the way forward.

     

    Embedded Canvas shouldn't need a record to relate with.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is there another place where I can embed a canvas app or it can be only a form? 

     

    Custom page doesn't provide dropdown control so for now it's not an option for me.

  • Verified answer
    jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Take a loom at this:

    Embed a Canvas App in a Model Driven App (full-screen) – Dynamict

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This actually does the trick! Thank you very much for your time and help on this, jcfDaniel! 🙂 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard