Hi, I am looking for the best way to detect the highest ID number in SharePoint when uploading pictures from PowerApps.
I must keep a pattern for pictures and I can't use a random number, it must be a picture number in the end, so something like:
photo_1
photo_2
photo_3
etc.
I am using Power Automate to upload them and ask for name in PowerApps, but when I use the Max() + 1 function, sometimes it doesn't detect the last record if the user uploads pictures too fast and a picture is lost.
I also struggle with offline function, as sometimes the user would upload pictures offline. I think it should read the values from SharePoint but as above, sometimes it doesn't detect the last record.
Any ideas for workarounds? Thank you!