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 / Is there a way to do a...
Power Apps
Answered

Is there a way to do a patch function with 2 ID's for a child table?

(0) ShareShare
ReportReport
Posted on by 383

I have a parent and child table connected to PowerApps. For the child table, it has an numeric ID connecting it to the parent table and has an ID for each of it's child records that is a timestamp. How would I update that table based on a form control and using a patch function with 2 ID's?

 

 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kirsten2 

    You don't mention the datasource but if it was SharePoint, I would recommend the parentID as a numeric field in the Child record.  The parent record can be accessed by selecting it from a gallery, datatable, dropdown or combobox.  The form should have the Update property of the card for the parentID as something like Gallery1.Selected.ID and the card should be disabled or hidden to prevent the user from changing it.  Just use SubmitForm(form1) to submit it.  

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kirsten2 

    If it solved your problem please mark it as a solution so that others can find it.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard