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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Update multiple records based on filter

(0) ShareShare
ReportReport
Posted on by 128

Hi

 

I would like to filter a sharepoint list and afterward change the same variable for all left on the list to the same value...

 

Earlier I have made this code - and it works...

 

ForAll(
Filter(Table_Tasks;SagNummer="5550 - 2";";"&"8"&";" in Predecessor);
Patch(Table_Tasks; ThisRecord;
{Deadline: Today()}
))

 

Now I would like to remove the second part of the filtering, but now it doesn't work anylonger... Why...?

 

ForAll(
Filter(Table_Tasks;SagNummer="5550 - 2");
Patch(Table_Tasks; ThisRecord;
{Deadline: Today()}
))

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    151,690 Most Valuable Professional on at
    Re: Update multiple records based on filter

    Hi @jlke-as ,

    I have a partial answer in that it should not have worked in the first place as patching a data source with itself generally does not work and produces an error. However try this

    With(
     {
     _Data:
     Filter(
     Table_Tasks;
     SagNummer = "5550 - 2"
     )
     };
     Patch(
     Table_Tasks;
     ForAll(
     _Data As _Items;
     {
     ID: _Items.ID;
     Deadline: Today()
     }
     )
     )
    )

     

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard