cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published 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 (7,159)