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 / Updating multiple reco...
Power Apps
Answered

Updating multiple records in SharePoint

(0) ShareShare
ReportReport
Posted on by 34

I am working on an app that enables management in our company to pick winners for our recognition program from a SharePoint list. From this list we are grouping by column to display staff, and in a different gallery all the nominations they received on the quarter.

StefanV_0-1686220974133.png

Now, management can go through all the nominations for this staff member and then using the toggle switch, select if the person is a winner or not.

 

This only reflects on the selected record though… they want the one selection to update every instance where the user was nominated to be updated as well.

 

This is what I came up with, but it is missing something:

 

 

If(varQuarterChanged = 1, Patch(
 'F23_Selection_v1.2', 
 LookUp('F23_Selection_v1.2', (galNominees_1.Selected.Grouped).'Employee ID' = 'Employee ID') , 
 {'Quarterly Winner': DataCardValue5.Value} , 
 {Location: DataCardValue19.Selected}),
 Navigate(Quarterly_Nominees,ScreenTransition.UnCoverRight));

 

 

varQuarterChanged  = var I set up on the OnChange for the toggle

 

Please can you help me fix this?

Categories:
  • StefanV Profile Picture
    34 on at

    Update: I was able to make this work, but it obviously only updates the first record:

     

    If(
     varQuarterChanged = 1,
     Patch(
     'F23_Selection_v1.2',
     LookUp(
     'F23_Selection_v1.2',
     First(galNominees_1.Selected.Grouped).'Employee ID' = 'Employee ID'
     ),
     {'Quarterly Winner': DataCardValue5.Value},
     {Location: DataCardValue19.Selected}
     ),
     Navigate(
     Quarterly_Nominees,
     ScreenTransition.UnCoverRight
     )
    )

     

    Any suggestions on updating all records?

  • Verified answer
    StefanV Profile Picture
    34 on at

    If anyone is interested, this worked:

     

    If(
     varQuarterChanged = 1,
     UpdateIf(
     DataSourceName,
     'Employee ID' = Gallery2.Selected.'Employee ID' And 'Nomination Quarter' = "Quarter 2"
     ,
     {
     'Quarterly Winner': DataCardValue5.Value,
     Location: DataCardValue19.Selected,
     'Quarterly comments': DataCardValue53.Text
     }
     )
    )

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard