cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Partisan
Post Partisan

Create File - allow duplicates

Hello Community,

I need your help please.

I've built a flow that takes an attachment from a list and then creates a new file in a SharePoint Library

The workflow failed due to a document already exists in the library, but I want the ability to override that version.

 

Can anyone help to provide information on how to do this

The approval is based on the item in the list, once approved it gets the attachments and creates the file

Create File.jpg

Thank you in advance for any assistance.

Kind regards

Claire

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @ClaireAllen,

 

Currently, the create file action will fail when a file with the same name already exists in the folder.

There are two ways could do this, one is before file creation, use Get files + filter array to check same name file.

The other way, is I prefer to do it to is create the file in a temporary folder, then use Move file action with replace setting if a file already exists, it will replace the file:

Screenshot 2020-12-18 141117.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi @ClaireAllen,

 

Currently, the create file action will fail when a file with the same name already exists in the folder.

There are two ways could do this, one is before file creation, use Get files + filter array to check same name file.

The other way, is I prefer to do it to is create the file in a temporary folder, then use Move file action with replace setting if a file already exists, it will replace the file:

Screenshot 2020-12-18 141117.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

@v-litu-msft 

Thank you for the suggestion, I've added Move File action into the flow, (I created a holding library) to move the documents in, BUT I get an error

ClaireAllen_0-1608280055296.png

The holding location is a Document Library, but the steps before that to create file are getting attachments from a LIST and creating a file in the new holding library, 
This is the flow shown below

ClaireAllen_1-1608280194923.png

 

Flow Fails, at Move File, but I can see the document in the Holding Library.

ClaireAllen_2-1608280258621.png

 

 

Any Suggestions?

Thank you & regards

Claire

 

Post Partisan
Post Partisan

@v-litu-msft ,
I fixed the issue and changed the File to Move dynamic content to ID of Create File

ClaireAllen_3-1608283934146.png

The flow runs and moves the file from one location to another
Thanks for the suggestion.

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (33,672)