web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attach unique ID to fi...
Power Apps
Unanswered

Attach unique ID to files uploaded to Sharepoint Library

(0) ShareShare
ReportReport
Posted on by 203

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?

Categories:
I have the same question (0)
  • earribasb Profile Picture
    74 on at

    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
    )​





  • julienvdc Profile Picture
    203 on at

    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...

    julienvdc_0-1715004848248.png

     

  • Verified answer
    Mitanshu Profile Picture
    1,650 Moderator on at

    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.

     

    happyume_0-1715005991445.png

     

    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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard