cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Mass-Update items in a gallery based on a checkbox tick

I want to mass-update items in a gallery's statuses to "Completed" based on them being checked, or not checked.

 

Data Source = 'Action Plans'

Each gallery item is an action plan that has to be completed. I want to check all of the completed items, and update their statuses using a button at the bottom. So the button mass-updates all of the item statusses.

 

I cant get the button to do this. I don't know how to change the status based on the checkbox, as well as using ForAll to patch each individual item based on the abovementioned condition.

 

Capture.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Mass-Update items in a gallery based on a checkbox tick

Hi @gmaasz ,

Where’s your data source from ?

Can you show me your formula ?

 

I assume that your data source is from sharepoint list .

 

I have made a test .

I create a list named test4 .status column is single text type.

19.PNG20.PNG

Set Onselect property of the button to :

ForAll(RenameColumns(Filter(Gallery1.AllItems,Checkbox1.Value=true),"ID","ID1"),Patch(test4,LookUp(test4,ID=ID1),{status:"completed"}))

21.PNG

 

Regards.

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Mass-Update items in a gallery based on a checkbox tick

Hi @gmaasz ,

Where’s your data source from ?

Can you show me your formula ?

 

I assume that your data source is from sharepoint list .

 

I have made a test .

I create a list named test4 .status column is single text type.

19.PNG20.PNG

Set Onselect property of the button to :

ForAll(RenameColumns(Filter(Gallery1.AllItems,Checkbox1.Value=true),"ID","ID1"),Patch(test4,LookUp(test4,ID=ID1),{status:"completed"}))

21.PNG

 

Regards.

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper III
Helper III

Re: Mass-Update items in a gallery based on a checkbox tick

I used your formula and am getting an error. The data source is a SP list, and the column is named 'Issue Status'. It gives me the following error on the column:

 

The type of argument 'Status' does not match the expected type 'Record'. Found type 'Text'.

Capture.JPG

 

 

 

 

Highlighted
Helper III
Helper III

Re: Mass-Update items in a gallery based on a checkbox tick

@v-sheyu-msft

forgot to mention that the status field is a dropdown.

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,933)