Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Add approve all button to gallery

(0) ShareShare
ReportReport
Posted on by 227

Hi,

 

I need help to add a button to my gallery in powerapps. This gallery has information regarding the request and the CFO has to enter in their approval for each item. Sometimes there can be 20 items to approve. To make it easier, I would like to add a button that says "Approval All" and this button would then select the "Approve" option within the dropdown for all 20 items. What should the formula look like?

 

Any help is appreciated!

 

Gallery:

NPatel12498_0-1710355497492.png

CFO Response Field:

Items: 

Choices('Checklist Details'.'CFO Response')

 

  • NP-18101421-0 Profile Picture
    227 on at
    Re: Add approve all button to gallery

    Hi,

     

    @BhaskarDhone I was hoping you could help me with this issue again. I need the CFO to be able to select Approve All and then also be able to update one of the items to reject if needed. However, when I do this, none of the responses are patching and saving unless I manually click into the dropdown and select it. The Approve All button does update the dropdown values to Approve, but after submitting the values don't get saved.

     

    Can you provide some insight why this may be happening?

  • NP-18101421-0 Profile Picture
    227 on at
    Re: Add approve all button to gallery

    Thank you for all your help!

  • BhaskarDhone Profile Picture
    790 Super User 2025 Season 1 on at
    Re: Add approve all button to gallery

    Add Reset button and Set value to Blank.

     

    Set(CFOResponse, Blank())

     

    If it answers your question don't forget to mark it as solution and give kudos 👍

  • Verified answer
    NP-18101421-0 Profile Picture
    227 on at
    Re: Add approve all button to gallery

    This works great! and what if I wanted to reset all of the rows back to them being blank... how would that be done?

  • Verified answer
    BhaskarDhone Profile Picture
    790 Super User 2025 Season 1 on at
    Re: Add approve all button to gallery

    Create a variable CFOResponse by default set the value to Blank().


    When user click on 'Approve All' buttton set the value of the variable to 

     

    Set(CFOResponse, {Value:"Approve"})

    And on the DefaultSelectedItems of Combobox control have variable CFOResponse

     

    If its dropdown then on then set variable as

     

    Set(CFOResponse, "Approve")

    set it on default of dropdown control

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard