Announcements
Hey,
I have a PowerApps through which users are able to upload multiple files to a Sharepoint Library and I would like to make sure that files that have the same name as already uploaded files do not replace them.
So I would like to create a unique ID for each uploaded file. Is this achievable through my PowerAutomate flow?
You can create a compose action with the below code. It transforms the date to unix format (just numbers) and after attach it to the file name
div( sub( ticks( utcNow() ), ticks( parseDateTime('1-1-1970') ) ), 10000000 )​
Hey @earribasb thanks for your suggestion!
I tested it but it seems like when files are uploaded quite quickly, they'll get the same ID...
although datetimestamp is usually reliable, but if your use case will have file being uploaded at exact same moment - then you can use guid() expression in power automate to append to your filename.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 493 Most Valuable Professional
11manish 479
Haque 328