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 Platform Community / Forums / Power Apps / Update multiple record...
Power Apps
Unanswered

Update multiple records based on filter

(0) ShareShare
ReportReport
Posted on by 130

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
    152,843 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard