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

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 II
Helper II

@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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,854)