web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch Multiple Rows ba...
Power Apps
Unanswered

Patch Multiple Rows based on condition

(0) ShareShare
ReportReport
Posted on by 204

Hi Guys,

 

I would like to patch multiple rows at once.

 

Example Colour column values "blue, red, brown" patch column available as "Yes".

At the moment I'm doing this in 3 separate patch formulas.

 

Unsure if this is possible.

 

Any help is greatly appreciated.

 

Thanks

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @christian12 

    Assuming you have your Colour data in say a collection, you can use a Patch( ForAll()), eg

    Patch(
     yourTableName,
     ForAll(
     yourColourTbl,
     {
     ID: ID,
     Colour: "Yes"
     }
     )
    )

     

    Note: the ID is needed in the above code because the functions needs something to reference to work properly. If you don't have ID, you'll need some other reference field

  • christian12 Profile Picture
    204 on at

    Thanks @EddieE 

     

    This will only work if all ID's are the same. In this case I only need to patch say "blue,green and red". 

     

    There are 10 different colours within the collection and nothing available that ties these colours together.

  • EddieE Profile Picture
    4,641 Moderator on at

    @christian12 

    Without any code or app context this is a little hard to provide a specific solution.

     

    However, assuming you have a number of checkboxes with colour names, they could be setup like so

    // OnCheck property, assumes the Text properties are set to colour names eg 'Red', 'Brown' etc
    Collect( colCheckedColours, Self.Text)
    
    // OnUncheck property
    RemoveIf( colCheckedColours, Value = Self.Text)

     

    Then a button to update your records, using UpdateIf()

    UpdateIf(
     yourTableName,
     Colour in colCheckedColours.Value,
     {Available: "Yes"}
    )

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard