cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shadow29warrior
Frequent Visitor

How to make event based flow run only once in a while?

Hello.

 

I have made a flow that would trigger when a file is created in a folder (lets call it event folder). Based on that the flow would create another file in a different folder and send me a message that a new file has been created.

Now the event folder could have 1 or multiple files generated at once. My flow would trigger for each file created and spam me for all the files at once. I want only to have one message for any number of files created within the span of 5 minutes. Is there a way to do that?

 

Here is my flow

shadow29warrior_0-1632143443766.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

HI @shadow29warrior ,


So I have done some testing.

 

Default Trigger - not changes to settings

 

1. Created 3 items in succession

ericcheng_1-1632466407827.png

2. Flow triggers 3x (as expected)

ericcheng_2-1632466432615.png

 

Disable Split On and Set Concurrency Control to 1 (sequential)

ericcheng_3-1632466501704.png

 

1. Added 7 items in a succession

ericcheng_5-1632466610850.png

2. Flow runs 1x

ericcheng_6-1632466775127.png

 

3. The items are outputted in the trigger body as an array which will allow you to loop through multiple items in one flow.

 

ericcheng_7-1632466835938.png

 

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

 

 

 

 

 

 

View solution in original post

9 REPLIES 9
eric-cheng
Solution Sage
Solution Sage

Hi @shadow29warrior ,

 

You could play around with SplitOn and concurrency within your trigger settings as mentioned here.  Scroll down to the last half of the blog.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

Didn't seem to work. It seems concurrency control limits the number of parallel instances but once an instance finishes, another one is triggered thus achieving nothing but delayed messages which causes more confusion

Hi @shadow29warrior 

 

I think you need to toggle spliton to off in your trigger.

 

I will have a look tomorrow morning once I am in front of my pc

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

Hello @eric-cheng 

Did you figure it out?

eric-cheng
Solution Sage
Solution Sage

Hi @shadow29warrior ,

 

Sorry got tied up with work.  Will have a look shortly.

eric-cheng
Solution Sage
Solution Sage

HI @shadow29warrior ,


So I have done some testing.

 

Default Trigger - not changes to settings

 

1. Created 3 items in succession

ericcheng_1-1632466407827.png

2. Flow triggers 3x (as expected)

ericcheng_2-1632466432615.png

 

Disable Split On and Set Concurrency Control to 1 (sequential)

ericcheng_3-1632466501704.png

 

1. Added 7 items in a succession

ericcheng_5-1632466610850.png

2. Flow runs 1x

ericcheng_6-1632466775127.png

 

3. The items are outputted in the trigger body as an array which will allow you to loop through multiple items in one flow.

 

ericcheng_7-1632466835938.png

 

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

 

 

 

 

 

 

View solution in original post

Hey @eric-cheng 

Seems like you are using the `When Item is created` block which works on lists and not files. That block's settings have spliton option, I believe I don't have permissions to create lists on the sharepoint thus I am using `When a file is created in a folder` block which does not have the spliton option. I have just tried with concurrency settings as shown below which doesn't work

shadow29warrior_0-1632491173353.png

shadow29warrior_2-1632491287800.pngshadow29warrior_3-1632491304638.png

 

Here is the flow, could you please try to replicate it with these blocks as per the screenshot?

shadow29warrior_1-1632491254481.png

 

eric-cheng
Solution Sage
Solution Sage

Hi @shadow29warrior ,

 

Can you use the when a file is created (properties only) action?

 

You can still specify a folder.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

This Worked. Thanks @eric-cheng 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,977)