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 email attachmen...
Power Automate
Unanswered

Saving email attachments with same name to SharePoint

(0) ShareShare
ReportReport
Posted on by 3

Can flow check for a duplicate file name prior to attempting to add attachment in SharePoint?  The problem is if duplicate file already exists in SharePoint flow will not add the file.  Turning on versioning in SharePoint is not the answer in this case.  I know how to make the file name unique (using flow) by adding the date/time to the name, however, what I would really like to do is first check for a duplicate file name in SharePoint, and then if found, add a time stamp to that file.  I could use content organizer in SharePoint but the preferred resolution would be to add a condition in flow to check for duplicate files names and if found add file with a time stamp to make that file unique.  Can this be accomplished using flow?   Thank you!!

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi,

     

    I think your requirement to check for duplicate file name in SharePoint cannot be accomplished in flow so far. As you can see, in the condition, there is no such related relationship options:

    Capture.PNG

     

    You could post this idea in the Flow Ideas forum, so it might be considered for future releases.

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Regards,

    Mona

     

     

  • Flowinsight Profile Picture
    3 on at

    Mona, Thank you!   I have submitted the idea request.  I also have additional questions, that I'm hoping you may be able to shed some light on ...

     

    Because the solution above is not yet available using flow I decided to use the Content Organizer feature in SharePoint to flag duplicate files with unique ID's.  However the problem I ran into is it that the files will move to the drop box but waits for the 'Edit Properties' command and the 'Submit' command to be invoked.  Based on my research it looks like a timer job delays this process.  I can manually select those commands and the files move to the destination library, however I'm trying to prevent user intervention and my concern is if they are waiting on the timer job duplicate files will be overlaid.  From my understanding this timer job is scheduled to run daily, however I would like the files to be moved as soon as they hit the drop off library.  Do you know if it's possible to have flow complete these steps?  If not, then perhaps I check to see if SharePoint Designer can complete these steps.       

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard