cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft
Microsoft

Flow triggers itself

I have a flow that is triggered when a SharePoint file is created.  If the file is a log file it moves it to a sub folder but the issue is that when the file hits the sub folder the flow is triggered again and obviously fails since the source and destination is the same.  Is there anything I can add to the flow to prevent it from looking in subfolders?  I am trying to prevent moving the Logs folder out from within the main folder.  Screenshot of the flow is below.

 

Image 139.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Advocate I
Advocate I

Can you try using a different trigger: instead of when a file is created (properties only ) use When a file is created in a folder.

this allows you to pick any subfolder in your doc library and then move it to a different subfolder in the same library without "getting file properties.

In the condition use FileIdentifier ends with .log - see screen below. 

hope this helps

 

Flow.png

View solution in original post

1 REPLY 1
Advocate I
Advocate I

Can you try using a different trigger: instead of when a file is created (properties only ) use When a file is created in a folder.

this allows you to pick any subfolder in your doc library and then move it to a different subfolder in the same library without "getting file properties.

In the condition use FileIdentifier ends with .log - see screen below. 

hope this helps

 

Flow.png

View solution in original post

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 (93,429)