cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hemasai1999
Helper III
Helper III

I want to write a condition in flow to check whether file already present in sharepoint documents or not?

Hi, 

I have created the following flow which uploads the file and reqid. But when the other user uploads the file with same filename which is already exist in documents but with new reqid it's replacing the old file. Here, I don't want to replace the file instead it should create new item as reqid will be different.

How to create new item in documents every time the user try to upload files even if the filename is already exist.

 

Hemasai1999_0-1649135381793.jpeg

 

Sharepoint Documents

Flow:

Hemasai1999_1-1649135381796.jpeg

 

 

 

Hemasai1999_2-1649135381797.jpeg

 


Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Hemasai1999 ,

 

You can create the file in a template folder, then use Move file action to move the file to the designated folder. There is an option for you to set when same name file is already there:

vjefferni_0-1649316538397.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @Hemasai1999 ,

 

You can create the file in a template folder, then use Move file action to move the file to the designated folder. There is an option for you to set when same name file is already there:

vjefferni_0-1649316538397.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,946)