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 / Update Sharepoint List...
Power Apps
Unanswered

Update Sharepoint List from Collection Results

(0) ShareShare
ReportReport
Posted on by

I am creating an app where users will be able to update SharePoint list scores. The first screen of the app is the form where users can input scores, which then gets sent to a collection called colResults. On the review screen, a gallery pulls in colResults where users can then make updates to any scores they made before submitting to the SharePoint list. I'm having an issue writing the code to submit the updates to the SharePoint list. Since we're not adding new rows, just changing scores of what's already existing, a LookUp function is needed to see exactly which row the scores should be updated. Building and Room are the two columns that will distinguish what is changed. Exterior, Interior, and Seats are the scores. I have attached a sample of my code. I keep getting errors of "Error when trying to retrieve data from the network fetching items failed" Could anyone help? Thank you!

 

ForAll(colResults As List, Patch('Score Results', LookUp('Score Results', Building= List.Building && Room = List.Room), {Exterior: ThisRecord.Exterior, Interior: ThisRecord.Interior, Seats: ThisRecord.Seats}))

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,307 Most Valuable Professional on at

    Hi @tdhuff0803 ,

    There is nothing fundamentally wrong with what you have, however I will give you a different approach to try

    Patch(
     'Score Results', 
     ForAll(
     colResults As List,
     With(
     {
     _ID:
     LookUp(
     'Score Results', 
     Building = List.Building && 
     Room = List.Room
     ).ID
     }, 
     {
     ID: _ID,
     Exterior: List.Exterior, 
     Interior: List.Interior, 
     Seats: List.Seats
     }
     )
     )
    )

     

    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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard