Hi all,
I have been trying to find a way to update a SharePoint list with stock from a collection on PowerApps.
For further explanation, I have created a shopping cart app that has a shopping basket collection.
The first thing I do is patch it into an orders SP List to create an order history of all the customer details and the items ordered.
I would like to then take all respective items put in the basket and reduce the quantity of the items on a separate stock list.
The collection already has an ID that matches the ID from the stock list. So theoretically it should be simple enough to match the Collection ProductID with the Sharepoint ID and then reduce the SP quantity by the collection quantity. However, I can't seem to get the types to match. I have been trying Foralls, Patch's and lookups but can't seem to get rid of 'incomparable types' and 'invalid argument' errors.
Any help would be greatly appreciated!
Thanks