web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard