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 / How do I patch (update...
Power Apps
Answered

How do I patch (update) all records in a table, that match a criteria

(0) ShareShare
ReportReport
Posted on by 7

I want to, at a press of a button, update all records in my table, if they have a blank "CommitedDate" field.

If the field is blank, it should get a now() inserted.

 

I have tried a variety of Patch() and ForAll(), with various LookUp() and Filter() on then, and not really managed.

I feel like this should be quite a simple thing but I cannot solve it.

 

How on earth do I do what would be a simple update statement in SQL, with a where filter that simply check if CommitedDate was null?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Nicoolai ,

    Based on the field values required

    UpdateIf(
     TableName,
     CommittedDate = Blank(),
     {CommittedDate: Now()}
    )
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Nicoolai consider using UpdateIf:

     

    UpdateIf(
     'Your Data',
     'Your Date Field' = Blank(),
     {'Your Date Field': Now()}
    )
    

     

  • Nicoolai Profile Picture
    7 on at

    Of course it was this easy!

    Thank you very much, worked like a charm.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard