Showing results for 
Search instead for 
Did you mean: 
New Member

Patch() function on Command bar designer

Initially, I had 4 of my status reasons under the Active status and 1 under the Inactive status. Due to some business decisions, there are now 2 under Active and 3 under Inactive. That is all fine except for when it comes to the Command bar designer for model-driven apps.


I would like the Patch() to change the status reason from one to another when clicking the button. But it seems to recognise only the old status reasons (i.e. before some were changed to Inactive status reasons). Every combination I try seems to change the status reason to the one that is the default under both Active and Inactive.


The auto-complete in the OnSelect function also only displays the old status reasons and I am unable to use the values of the status reasons instead of the labels.


Helpful resources

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 (2,347)