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 / Patching all items' ye...
Power Apps
Answered

Patching all items' yes/no column with a button

(0) ShareShare
ReportReport
Posted on by

Hi! I have a PowerApp with a sharepoint list as data source, my requirement is if one button (check icon) is selected, it will patch all items' yes/no column to 'yes', how do i do it? Thanks in advance for any help

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Anonymous 

     

    You can either use ForAll with Patch.

     

    On the OnSelect property of the code use:

    ClearCollect(TempList,SharePointListName);
    ForAll(
     TempList as ABC,
     Patch(SharePointListName,
     LookUp(SharePointListName, ID=ABC.ID),
     {
     YesNoCol: true
     }
     )
    );

     

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

    Hi @Anonymous,

    Do you want to click a check button to update a Yes/No column with 'yes'?

     

    I want to tell you that we could only update a Yes/No with boolean value like true or false, you should change it to Text type if you want to update with yes or no.

    Here is a simple formula to achieve your need by setting the OnSelect porperty of the check button as below:

    UpdateIf(ListName,true,{'Yes/No':true})

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard