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 / To update a value unde...
Power Apps
Unanswered

To update a value under a column in a sharepoint list in multiple row against the logged user from power app

(0) ShareShare
ReportReport
Posted on by 11

I want to update the "Reviewed" column in a SharePoint list for all rows where the "Assignee" column matches the logged-in user. The current formula in the 'OnSelect' property of a button in Power Apps only updates the first matching row.

 

Patch('Checklist Daily-IBOR and RECON',LookUp('Checklist Daily-IBOR and RECON',Assignee.DisplayName=User().FullName),{Reviewed:{Value:"Yes"}})

Can you please suggest a change to the formula so that it updates all the rows where the "Assignee" matches the logged-in user?

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @Jobimb ,What is the datatype of your column Reviewed? Is it Yes/No type column? If yes then code will be 

     

    Patch('Checklist Daily-IBOR and RECON',
     LookUp('Checklist Daily-IBOR and RECON', Assignee.DisplayName = User().FullName),
     {
     Reviewed:true
     }
    )

     

     -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


  • Jobimb Profile Picture
    11 on at

    Thanks. But this is not updating in all the rows against Assignee column. It only updates the first row only where below condition matches. I need to update the value to all the rows where Assignee.Displayname = User().FullName)

    Assignee.DisplayName = User().FullName)

     

  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    @Jobimb Use this:

     

     

    ForAll(
     Filter(
     'Checklist Daily-IBOR and RECON', 
     Assignee.DisplayName = User().FullName
     ) As Var, 
     Patch('Checklist Daily-IBOR and RECON',
     Var,
     {
     Reviewed:true
     }
     )
    )

     

     

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


  • Jobimb Profile Picture
    11 on at

    Nope, it is not working. Some errors

  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    @Jobimb When you say error what is the error message? Could you please share the screenshot because I cant see your screen. The code is pretty straight.

     

    Try this:

     

     

    ClearCollect(collection,Filter(
     'Checklist Daily-IBOR and RECON', 
     Assignee.DisplayName = User().FullName
     ));
    ForAll(colleaction, 
     Patch('Checklist Daily-IBOR and RECON',
     ThisRecord,
     {
     Reviewed:true
     }
     )
    )

     

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


  • Jobimb Profile Picture
    11 on at
    On the last part, I am getting below error
    Jobimb_0-1719602328866.png

     

    ClearCollect(collection,Filter(
                  'Checklist Daily-IBOR and RECON',
                   Assignee.DisplayName  = User().FullName
                  ));
    ForAll(collection,
             Patch('Checklist Daily-IBOR and RECON',
             ThisRecord,
                 {
                   Reviewed:{Value:"Yes"}
                 }
    )
  • Damin Profile Picture
    63 on at
    It should be some think like this, you should specify which record in your table that matches to ThisRecord of ForAll Function, something like this : 
    ForAll(collection,
             Patch('Checklist Daily-IBOR and RECON',
             ThisRecord,
                 {
                   Reviewed:{Value:"Yes"}
                 }
    )
  • Jobimb Profile Picture
    11 on at

    Nope, it is not working. Refer below part where error reflects

    Jobimb_0-1719602959946.png

     

  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    @Jobimb Last bracket is missing for ForAll in your code:

    ClearCollect(collection,Filter(
     'Checklist Daily-IBOR and RECON',
     Assignee.DisplayName = User().FullName
     ));
    ForAll(collection,
     Patch('Checklist Daily-IBOR and RECON',
     ThisRecord,
     {
     Reviewed:{Value:"Yes"}
     }
     )
    )

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


  • Jobimb Profile Picture
    11 on at

    Thank you @ANB & @Damin for the solution. 

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
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard