cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Refresh SP list not getting all items

Hello,

 

I have a SP list of about 1000 items, and a button in my powerapp which sets the first item which isn't reserved to reserved , collects it to a local collection and then does a refresh of that list.
It works flawlessly the first time i press the button, the next time it will generate a miss-match error and I can see that the ID of the item its trying to patch is the same as the first, even thought its set to reserved.

If I add refresh in the beginning of the code and in the end of the code it will work. However it will extend the time by at least 10 seconds until its done.

Any advice is appreciated! 

 

Set(IDLookUp,First(Filter(Lager, ThisItem.Title = 'Title (Title0)'.Value, Reserverad.Value = "Nej")));


Patch(Lager, IDLookUp , {

Reserverad:{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id:Value(IDLookUp.ID) ,
Value:"Ja"}

});



Collect(Kundvagn, {
Produkt_Collection: ThisItem.Title,
ImageData: First(ThisItem.'{Attachments}').Value, 
Pris_Collection: ThisItem.Pris, 
ID_Temp: IDLookUp.ID ,
Thisitem_From_Lager_To_Delete: IDLookUp });

Set(IDLookUp, Blank());
Refresh(Lager);

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,459)