cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryang
Level: Powered On

Updating Multiple Entries in a Sharepoint List

As part of the OnVisible Property of  Screen i have the following formula:

 

ClearCollect(PassengersTemp,Filter(Passengers,BookingId=BookingFilterId))

Then on a button I have the following formula which has no errors until after I click the button:

 

Forumla - ForAll(PassengersTemp,Patch(Passengers,First(Filter(Passengers,ID=ID)),{Queue:Queue+1}))

Error - The requested operation is invalid. Server response: Fetching items failed. Possible invalid string in filter query.

 

What I am essentially attempting to do, update a subset of the Passengers table all at once. I had done a concept similar to this using SQL Server as the data source. I do not know if there is something I am over looking.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Eelman
Level 10

Re: Updating Multiple Entries in a Sharepoint List

@ryang  PowerApps doesn't like ID=ID. You can use disambiguation or what I've also done in the past is rename one of the ID columns like this:

 

ForAll( RenameColumns(PassengersTemp, "ID", "ID1"), Patch(Passengers, First( Filter(Passengers, ID = ID1)), { Queue: Queue+1 } ));

View solution in original post

1 REPLY 1
Highlighted
Eelman
Level 10

Re: Updating Multiple Entries in a Sharepoint List

@ryang  PowerApps doesn't like ID=ID. You can use disambiguation or what I've also done in the past is rename one of the ID columns like this:

 

ForAll( RenameColumns(PassengersTemp, "ID", "ID1"), Patch(Passengers, First( Filter(Passengers, ID = ID1)), { Queue: Queue+1 } ));

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,871)