Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Flow runs recursively

(1) ShareShare
ReportReport
Posted on by 13

Hello! I have created a flow for Sharepoint with the intention of copying a file to two different directories, but when it runs it iterates on itself. I'm not sure how to fix the issue, but I'm thinking it's probably something simple to do with the trigger.

 

What I want is this:

  1. When a file is uploaded to a specific folder within a specific Sharepoint library 
    1. Copy and rename the file and place it in a sub-folder within the same Sharepoint library
    2. Copy and rename the file (the originally uploaded file) and place it in another different sub-folder within the same sharepoint library

I have the renaming component working, but as I said above, the flow triggers itself. I think I need to specify that I only want a specific folder to be monitored by the trigger, but I don't see any options for that.

 

Any help would be greatly appreciated!

 

  • trice602 Profile Picture
    trice602 11,131 on at
    Re: Flow runs recursively

    Hi @RHamm ,

     

    Are you using this trigger?

     

    trice602_0-1692995488787.png

     

  • RHamm Profile Picture
    RHamm 13 on at
    Re: Flow runs recursively

    Will that work if the name of the file varies?

  • lbendlin Profile Picture
    lbendlin 7,572 on at
    Re: Flow runs recursively

    You need to add that to your checks either as part of the trigger or  after the trigger. Like so:

    lbendlin_1-1692995662463.png

     

    or so

     

    lbendlin_0-1692995387174.png

     

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

End of Year Newsletter…

End of Year Community Newsletter…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #11 New Opportunities…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,609

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,420

Leaderboard