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
Answered

Update SharePoint list based on username on button click

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi gang!

 

I'm struggling to set up a fairly simple scenario, where I have a SharePoint list with users - and report-status.

The SharePoint list named Users contains two text fields.

* A text field, Title, containing all users displaynames

* A text field, Reported, containing status. Default value is "No".

 

TitleReported
Brad PittNo

 

Now I've added a button - and when it's clicked I wish it to lookup Title based on the PowerApp-user's displayname and change Reported to Yes instead of No.

I've played around with Patch for most of the time - though I'm starting to go in circles and could really use a pointer. 

The following monstrosity is as far as I've gotten; 

 

Patch(Users;LookUp(Users;Title=User().FullName;{Reported:{Value:"Yes"}})

Categories:
I have the same question (0)
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Anonymous try Patch(Users, {Title: User().FullName},{Reported:"Yes"}) or Patch(Users, LookUp(Users,Title= User().FullName),{Reported:"Yes"})

     

    hope this helps

     
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Second formula worked wonders, I wasn't too far from it in other words. Many thanks! 😊

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard