
I have an SP list that keeps locations of tools and my power app creates new entries eveytime a tool is scanned. Some tools are scanned once, some everyday. I have hit my entry limit on Power Apps and need to archive the list. There are 422 unique tools and i would like to keep only the latest entry for all 422, limiting my list from 2669 to 422 entries only.
How would i go about doing this? I have an automate for date periods on another SP list but cant find anything regarding keeping the latest unique values.
On your app, you could try to verify if the scanned item is already in the SP list before adding it, if it's already there you may want to update some fields (such as quantity) but not create a new item.
Another way you can try is keep creating new items upon every scan; add a Power Automate flow that handles the item creation event and add Get Items action with an OData filter to get only items with the same code (I assume you store it in the Title column so it's something like:
Title eq @{triggerOutputs()?['body/Title']} and ID ne @{triggerOutputs()?['body/ID']}That gets you all the items with the same title except for the current created item.
You can now easily iterate and delete them.
Hope this helps.
Roy