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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Saving Duplicate/same ...
Power Automate
Unanswered

Saving Duplicate/same file name in Sharepoint folder with suffix (2) at the end

(0) ShareShare
ReportReport
Posted on by

Hi Team,

 

I am trying to export pdf from power BI and saving those pdfs in sharepoint folder. However when the file already exists with same name or trying to save duplicate file, the error comes. Can anyone please assist in how can we get same file name/dupe file with suffix (2) at the end in the folder while exporting those pdfs in the flow.

 

Thanks

Happy

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    I suggest you download the file in a temporary location and use the Copy function with the following option turned ON. After copying, delete the file from the temporary location.

     

    SudeepGhatakNZ_0-1670974058337.png

     

  • happysaini30 Profile Picture
    on at

    Hi Sudeep,

    Thank you so much for your prompt response 🙂

     

    Apologies, this won't work in my case and I haven't been able to explain my scenario efficiently.

    Here is my case :

    So, I am trying to export pdfs from power BI using Unique ID (Unique ID is big combination of letters and numbers) and getting those pdfs saved in sharepoint folder. The name of file is "First Name" "Last Name" "Date".pdf, Now here what happens is when file with same name exists it doesn't export for another person who has same name. for example if my file exported as Happy Saini 14.12.2022 then does not save for another Happy Saini 14.12.2022 (here there are two different happy saini) so I want next one to save as Happy Saini 14.12.2022 (2).pdf.
    I hope this should be clear and appreciate if you can help in this scenario.

     

    Thanks

    Happy

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Thanks for the explanation! I think what I suggested should still work.

    The Copy file function has an option where it automatically adds a superscript (2) if one already exists.

    So if you leverage the action, you need not have to worry about checking if one exists.

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard