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 / Conditional Patching
Power Apps
Suggested Answer

Conditional Patching

(0) ShareShare
ReportReport
Posted on by 215
 

Hello,

 

I am currently developing a Power Apps application that includes several columns:

 

  • EngineeringRequired (Yes/No)

  • MarketingRequired (Yes/No)

  • OperationRequired (Yes/No)

  • QualityRequired (Yes/No)



  •  
 

Additionally, we have corresponding status columns:

 

  • EngineeringStatus (Text)

  • MarketingStatus (Text)

  • OperationStatus (Text)

  • QualityStatus (Text)



  •  
 

Scenario:

 

If any of the “Required” columns (e.g., EngineeringRequired, MarketingRequired, etc.) are set to “Yes,” the corresponding “Status” column (e.g., EngineeringStatus, MarketingStatus, etc.) should be set to “Approved.” Only after these conditions are met should the Patch function be executed.

 

Example:

 

  • If EngineeringRequired is true, then EngineeringStatus should be set to “Approved.”

  • Similarly, this check should be performed for all columns before proceeding with the Patch function.



  •  
 



 

 

 
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi  ursNani,
     
    Here's how you can achieve this -
    Lets assume you are using Dropdowns to get the user inputs. 
    The Default property of the Dropdown2 will be this (make sure AllowEmptySelection is set to true):
    If(
        Dropdown1.Selected.Value = "Yes",
        "Approved",
        Blank()
    )
    And the patch function will be the following (BTW, you can also perform this check in the Patch statement but lets keep it simple):
    Patch(
        DataSource,
        Defaults(DataSource),
        {
            EngRequired: Dropdown1.Selected.Value,
            EngStatus: Dropdown2.Selected.Value
        }
    )
    Here's how it looks:
     
    You can perform the same check for all the types now. 
     
    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!
     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard