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 a field for all...
Power Apps
Answered

Update a field for all loaded records in gallery

(0) ShareShare
ReportReport
Posted on by 20

Hello, I am new to PowerApps.
I have a gallery that been filtered with the current user, and I want to update the LastUpdate field for all loaded records in that gallery. My SP list is projectTable, so I wrote this code:

 

 

ForAll(
 TemplateGalleryList1_3.AllItems,
 Patch(
 projectTable,
 LookUp(
 projectTable,
 Email = CurrentUser
 ),
 {LastUpdate: Today()}
 )
)

 

 

I didn't get any error, and it didn't work either.
Any help would be appreciated.

 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    Jifri Profile Picture
    20 on at

    Well I was totally wrong.

    Here is the correct code:

    UpdateIf(
     projectTable,
     Email = CurrentUser,
     {LastUpdate: Now()}
    );

     

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