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);

Report
All responses (
Answers (