I have an app where users can list multiple peripherals and it will update the quantity of each in a SharePoint List. Power Apps doesn't like how I'm identifying the field and says, "Invalid argument type. Expecting one of the following: Number, Text, Boolean."
The code is:
ForAll(TempPeriphList, Patch(PeriphData, LookUp(PeriphData, Title = TempPeriphList[@Asset]), {Qty:PeriphData.Qty -1, Comment:Now() & " One device deployed."}));
TempPeriphList is a collection. PeriphData is a SharePoint List. The part that Power Apps doesn't like is "PeriphData.Qty - 1", specifically just the ".Qty" part of it. The data is being saved as a number in SharePoint. The rest of the code works, it's updating the comment for each peripheral listed, just won't update the quantity.
Any help is greatly appreciated!