Looking for a bit of guidance on setting up a flow to sum values from one SharePoint list to another based on unique identifier.
Scenario
I have ListA that contains an inventory of items and quantity purchased. The Title (single line of text) field will be a unique name in this list, with the Quantity purchased field being a Number field.
ListA Example:
| Title | Quantity Purchased | Quantity Used |
| Item1 | 50 | |
| Item2 | 25 | |
ListB contains a list of the items and the quantities used. Again with Title being a single line of text, and the Quantity Used being a number
ListB Example:
| Title | Quantity Used |
| Item1 | 10 |
| Item2 | 5 |
| Item1 | 10 |
| Item1 | 10 |
The end goal would be to sum the values for each item from ListB (when a new item is added to the list) and update the corresponding items Quantity Used field in ListA.
ListA After flow has ran:
| Title | Quantity Purchased | Quantity Used |
| Item1 | 50 | 30 |
| Item2 | 25 | 5 |
Thank you,