cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
j_y
Frequent Visitor

Approvals - Select and approve all requests at once

Hello all, I have created a gallery view for managers to approve/reject individual requests. As this is a multiple approval workflow, there are a handful of 'Check' and 'Cancel' icons overlapping each other that represents different conditions so that the information is correctly patched to my Sharepoint list. 

 

My question is, how should I write my formula for the 'APPROVE ALL' button, such that when this button is selected, all the individual requests will be automatically selected and patched to my Sharepoint list at once, instead of approving each request individually? 

 

j_y_1-1647251141985.png

 

1 REPLY 1
sgtsnacks64
Helper I
Helper I

I'd probably go for a ForAll statement on the Gallery Items to iterate through each one:

 

You could also add a Checkbox to the gallery template, and do an (approve all selected) function, filtering your ForAll table on (Gallery.AllItems, Checkbox.Value)

 

ForAll(Gallery.AllItems,Approval Formula/Function)

 

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (5,020)