cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Drangel
Level: Power Up

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
Super User

Re: Flow bot message for group (multiple) files

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!



View solution in original post

2 REPLIES 2
Super User
Super User

Re: Flow bot message for group (multiple) files

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!



View solution in original post

Highlighted
Community Support Team
Community Support Team

Re: Flow bot message for group (multiple) files

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.

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,048)