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 / Persisting a child obj...
Power Apps
Answered

Persisting a child object before a parent

(0) ShareShare
ReportReport
Posted on by 8

Hello everyone, I have searched this extensively and have not found an answer to this issue.  Here is what I am trying to do:

 

We have a 'Vendors' table and a 'Products' table that is joined by a many to many relationship through a 'VendorProducts' table as multiple vendors can have the same products and we need to record vendor specific properties for their products in the VendorProducts table.

 

In the Power App I am working on when creating a new vendor there is a tab on the edit form where we want to be able to add brand new products to the products table as well as VendorProducts objects to their table. I get that I can use the patch command to persist the Product first, then use the peristed product as a property on the new VendorProduct, but that is only half the info, I still need the VendorProduct to know which Vendor to relate to.  Is there some way I can reference the unsaved Vendor when saving the VendorProduct?

 

What I am trying to avoid is a user having to create a vendor and save, then re edit the vendor in order to add products to it.  

 

I hope this description is clear, and thank you in advance to anyone who has a look at this.  

Aaron

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @avankosky 

    If you are trying to do this without a junction table, you will be in a world of hurt. In any event, the parent must be created before the child, and to be included in the junction table before you can add child (in this case product) 

  • avankosky Profile Picture
    8 on at

    Yeah, I figured, but thank you for confirming.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard