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 / Button modify field it...
Power Apps
Answered

Button modify field item checked

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello;

 

When i click on the button i would that if an item is checked modify this field

 

My BrowseGallery is a List SharePoint an my field is Status_Request

 

I test but without succes :

 

ForAll(BrowseGallery1.AllItems;If(Checkbox2.Value; BrowseGallery1.Selected.Status_Request.Value="Approuved";Notify("false")))

 

ForAll(BrowseGallery1.AllItems;UpdateIf('Home Working Test'; BrowseGallery1.AllItems.Checkbox2.Value=true; BrowseGallery1.AllItems.Status_Request.Value="Approuved");

 

Sans titre.png

Thank you for you help ! 🙂 

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    If you want to modify all items that have been selected (by setting their Status_Request value to Approved), then you can use this expression:

    ForAll(
     Filter(BrowseGallery1.AllItems; Checkbox1.Value = true);
     Patch(deleteme20190913; { ID: ID }; { Status_Request: { Value: "Approved" }}))

    The Filter will only return the items from the gallery that are checked; the ForAll function will go through each of those items and call Patch on them, using the ID of the item to identify the item in the SharePoint list, and updating only the value of the column Status_Request.

    Hope this helps!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    thanks you for the help ! 🙂
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

     

    After this ForAll it's possible to refrech the list ? 

     

    Refrech('deleteme20190913')

     

    Thank you for you help 🙂

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

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard