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 / Approve Reject Status
Power Apps
Suggested Answer

Approve Reject Status

(1) ShareShare
ReportReport
Posted on by 80
I want to make the status to distinctively 'Approve' or 'Reject' by a button click. However, I only know how to use Set(variable) which only results to all the fields to be 'Approve' or 'Reject'. Anyone able to help?
1-10qns.png
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    There are a couple of way to do this.
    First way: Add two buttons in your Gallery, one for "Approve" and one for "Reject". Like this - 
    OnSelect property of your Approve button:
    Patch(
        DataSource,
        ThisItem,
        {status: "Approve"}
    )
    OnSelect property of your Reject button:
    Patch(
        DataSource,
        ThisItem,
        {status: "Reject"}
    )
    If you put the buttons outside the gallery. This will be the OnSelect formula:
    Patch(
        DataSource,
        GalleryName.Selected,
        {Status: "Approve"}
    )
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Nandit Profile Picture
    1,568 Moderator on at
    Hi,

    Following up to check if you were able to solve this issue using my suggestion?

    Kind regards,
    Nandit
  • Philbert9879 Profile Picture
    80 on at
    Hi,
     
    Yes, thank you so much. I am using your solution in my application. Appreciate your help so much.

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

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard