cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Flowinsight
Level: Powered On

Saving email attachments with same name to SharePoint

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

2 REPLIES 2
Community Support Team
Community Support Team

Re: Saving email attachments with same name to SharePoint

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

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Flowinsight
Level: Powered On

Re: Saving email attachments with same name to SharePoint

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.       

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 108 members 2,052 guests
Please welcome our newest community members: