cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Flow bot message for group (multiple) files

Hi Everyone,

 

Does anyone know of a way to have the flow bot post a single message into a team channel instead of multiple messages when a group of files are uploaded?

 

My current flow is:

 

Trigger: When a file is created (OneDrive For Business)

 

Action:  Create a file (Share Point) This is to add the files to Microsoft Teams for others to view and edit

 

Action: Post a message as flow bot to channel (Microsoft Teams) This message tags certain members to let them know the files have been uploaded.

 

Problem: The issue we're having is that 3 separate files are being created and uploaded into teams to a specific folder. For our purposes we cannot combine these files into one. Once they are uploaded the flow bot is posting 3 separate times. Is there a way to have flow bot only post once after the 3 separate files are uploaded? We have roughly 30 people that are uploading 3 separate files of their own for specific individuals to view, so the abundance of messages gets to be overkill. If we can bring the 90 messages down to 30 that would great!

 

Thank you in advance for you advise and help

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Hi @Drangel 

 

Your trigger is "When a file is created" So it is expected to trigger when ever a file is created. 

Here users are going to upload all three files in few minutes interval. In that case you could check the existing latest file created datetime after the trigger and stop sending the messages if its fall between a minute or so. Then again if multiple users uploading files at the same time you might end up loosing the messages. If you want a perfect solution then you need to implement a specific file name format (ending with _1, _2 or _3) where you can keep track of and check the created datetime.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi @Drangel 

 

Your trigger is "When a file is created" So it is expected to trigger when ever a file is created. 

Here users are going to upload all three files in few minutes interval. In that case you could check the existing latest file created datetime after the trigger and stop sending the messages if its fall between a minute or so. Then again if multiple users uploading files at the same time you might end up loosing the messages. If you want a perfect solution then you need to implement a specific file name format (ending with _1, _2 or _3) where you can keep track of and check the created datetime.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Community Support
Community Support

Hi @Drangel ,

 

I'm agree with @abm 's suggestion that you could let the uses upload the file with different name such as 01,02,03, and than you could create the flow with a Condition under the trigger, and you could only send the message when the file name contains 01.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helper I
Helper I

@Drangel 

 

If it is not too much hassle, can you post pictures of your final flow?  I am trying to create something similar but (being very new to this) keep running into roadblocks.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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!

Top Solution Authors
Users online (8,003)