cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Teams flow to check for new messages and send summary email only if they exist

Hi All,

I have built a teams flow that emails members of my team with all posts made in the last 10 minutes whenever a new message is posted in a particular channel.

I am also aware of how to send a weekly update of all new messages in the channel as shown here: https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Send-a-summary-email-of-Microsoft-...

However what I want is something that once a day checks if there are any new messages in the channel, if there are it sends out a summary and if there are no messages posted in the last 24 hours it does not send an email (rather than just sending an email containing no messages).

Please could someone advise me how to do this?

 

EDIT: Please feel free to move this to the "Building Flows" board; I didn't originally notice there were separate boards for building and running flows and I can't work out how to move or delete the post myself.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Teams flow to check for new messages and send summary email only if they exist

Hi @MelSmith ,

 

You could add a Condition under the "Filter Array" action to check the length of the records, and do all your following actions inside the If yes branch of the Condition, leave the If no branch of the Condition blank.

1.png

length(body('Filter_array'))

 

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.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Teams flow to check for new messages and send summary email only if they exist

Hi @MelSmith ,

 

You could add a Condition under the "Filter Array" action to check the length of the records, and do all your following actions inside the If yes branch of the Condition, leave the If no branch of the Condition blank.

1.png

length(body('Filter_array'))

 

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.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Users online (6,772)