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
Thank you in advance for any assistance.
Kind regards
Claire
Solved! Go to Solution.
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:
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.
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:
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.
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
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
Flow Fails, at Move File, but I can see the document in the Holding Library.
Any Suggestions?
Thank you & regards
Claire
@v-litu-msft ,
I fixed the issue and changed the File to Move dynamic content to ID of Create File
The flow runs and moves the file from one location to another
Thanks for the suggestion.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
User | Count |
---|---|
26 | |
25 | |
22 | |
22 | |
11 |
User | Count |
---|---|
45 | |
33 | |
31 | |
31 | |
30 |