cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BenVdP
Helper I
Helper I

How to dynamically monitor multiple subfolders in a shared mailbox

I'm currently working on a power platform solution for a customer, and now run into a wall.

 

The idea (or rather the goal) is that a Flow monitors a shared mailbox and as soon as a mail lands in a subfolder, it starts running. In itself this is not a problem, and I can use the Office 365 Outlook trigger for a shared mailbox. Unfortunately, there are +35 subfolders that need to be monitored. This would mean that I would have to create +35 parent flows which in turn would call a child flow to perform the generic actions. Not really user-friendly and future-proof in case new subfolders should be created.

 

Do you have any ideas or suggestions for solving this?

1 ACCEPTED SOLUTION

Accepted Solutions
VictorIvanidze
Community Champion
Community Champion

Using a MS GRAPH request.

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

View solution in original post

5 REPLIES 5
VictorIvanidze
Community Champion
Community Champion

You can create a scheduled flow and scans all subfolders periodically.

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

@VictorIvanidze , could you give more insight on how to scan multiple subfolders at once?

VictorIvanidze
Community Champion
Community Champion

Using a MS GRAPH request.

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

Did not think about using the graph api as it is quite new to me. Thanks for the tip and if I get it to work, I'll mark your post as the solution.

BenVdP
Helper I
Helper I

@VictorIvanidze , I got it to work, thanks to your suggestion.

 

I used the 'Invoke an HTTP request' and fetched all messages which a specific category is applied to.

 

2022-05-11_9-29-23.png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,274)