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 / Save a record from a c...
Power Apps
Answered

Save a record from a child table

(0) ShareShare
ReportReport
Posted on by 3

Hello,

 

I'm trying to update a record from a child table, but when I update a column, it creates a new record with a new ID and with the modified column, instead of updating the existing record

ForAll(Filter(Gallery_Issues.AllItems,Toggle_Issues.Value = true), Patch(CL_ISSUE,LookUp(CL_ISSUE,CL_PROD_SUMMARY_ID = Value(TI_ProdID.Text) && CL_ISSUE_ID = Value(TI_IssueID.Text) ,{ISSUE_COMMENTS:TI_Comments.Text})))

Can you help, please?
Thanks

 

moumen192_0-1673820353781.png

moumen192_1-1673820391978.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,393 Most Valuable Professional on at

    Hi @moumen192 ,

    Brackets in the wrong places I think

    ForAll(
     Filter(
     Gallery_Issues.AllItems,
     Toggle_Issues.Value
     ) As aPatch, 
     Patch(
     CL_ISSUE,
     LookUp(
     CL_ISSUE,
     CL_PROD_SUMMARY_ID = Value(aPatch.TI_ProdID.Text) && 
     CL_ISSUE_ID = Value(aPatch.TI_IssueID.Text)
     ),
     {ISSUE_COMMENTS: aPatch.TI_Comments.Text}
     )
    )

    also you can see if this is any faster

    Patch(
     CL_ISSUE,
     ForAll(
     Filter(
     Gallery_Issues.AllItems,
     Toggle_Issues.Value
     ) As aPatch,
     With(
     {
     wID: 
     LookUp(
     CL_ISSUE,
     CL_PROD_SUMMARY_ID = Value(aPatch.TI_ProdID.Text) && 
     CL_ISSUE_ID = Value(aPatch.TI_IssueID.Text)
     ).ID
     },
     {
     ID: wID,
     ISSUE_COMMENTS: aPatch.TI_Comments.Text
     }
     )
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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