web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Condition - Only Copy file if doesnt exist in destination folder

(0) ShareShare
ReportReport
Posted on by 9

Hello

 

i need some help

 

i have a flow that is working fine.. it copys the files from folders to others

 

Clients (Original Folder)

     ClientA
             -File01
             -FIle02

     ClientB

              -File01

 

GClients (destination FOlder)

   ClientA
             -File01
             -FIle02

     ClientB

              -File01


But now i only need to copy the files if they doesnt exist in the destiny folder. How can i do that?

 

Thank you

I have the same question (0)
  • PrasadAthalye Profile Picture
    on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

    Is this related to Onedrive.. If yes, you can use find files in folder action and if you find it, skip copy.

  • G1981 Profile Picture
    9 on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

    No, this is related to Sharepoint.

  • PrasadAthalye Profile Picture
    on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

    @G1981 - Can you try logic like below? In the If else condition action, setup settings like below in 2nd image...

     

    Please like and Mark this as solution if this resolves your issue.

     

    PrasadAthalye_0-1600954448145.png

    PrasadAthalye_1-1600954534117.png

     

  • v-bacao-msft Profile Picture
    on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

     

    Hi @G1981 ,

     

    There is a parameter in the Copy file action to check whether the Destination Folder already has the same file.

    60.PNG

     

    Best Regards,

  • G1981 Profile Picture
    9 on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

    Thats a good solution, but i need to have to conditions

     

    • If the file exists, dont copy  

    and if

    • if the file + sufix _DONE exist, dont copy

      For example, i want to copy the file "Test2020" but if i have in the destination folder one file "Test2020_DONE" i dont want to copy

     

  • v-bacao-msft Profile Picture
    on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

     

    Hi @G1981 ,

     

    You can first use Filter Query to filter files with the specified suffix in the specified Folder.

    72.PNG

    If so, the Copy file action is not executed. Then determine whether there is already a file with the same name, if there is, then fail this action.

    73.PNG

     

    Best Regards,

  • G1981 Profile Picture
    9 on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

    Hi

     

    i cant find this "Filename"

    G1981_0-1601458149495.png

     

  • v-bacao-msft Profile Picture
    on at
    Re: Condition - Only Copy file if doesnt exist in destination folder

     

    Hi @G1981 ,

     

    The File name in the screenshot is just a sample I provided. You need to fill in the appropriate Dynamic content to filter the files according to your configuration.

     

    Best Regards,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard