cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Draax
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);

 

0 REPLIES 0

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,724)