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 / How to update SharePoi...
Power Apps
Unanswered

How to update SharePoint field value with a button

(0) ShareShare
ReportReport
Posted on by 28

So I don't have much experience w powerapp... I have a SharePoint list, I want to build an app, just the default gallery, when an item is selected, it would go into the details form (as I want everything to be read-only), then I want to insert a button, when the button is clicked, I want to update one field on this record (with User().FullName), that's it. I just can't seem to make it work... I googled around and somewhere it mentioned the Patch function however I still cannot make that work within the form.

 

TIA!

 

WC

Categories:
I have the same question (0)
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @weiwei3k,

     

    On the Onselect property of your button you would use a patch function.

    Patch('Sharepoint List', 
     LookUp('Sharepoint List', Gallery1.Selected.Title = Gallery1.Selected.Title), 
     {
     'Column Name': User().FullName
     }
    )

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @weiwei3k,

    As @AARON_C mentioned Patch() function, however, I think you should refer to Gallery.Selected directly.

    Modify your Patch as below:

    Patch(list1,BrowseGallery1.Selected,{Requestor:User().FullName})
  • weiwei3k Profile Picture
    28 on at

    Thx! That worked!

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard