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

Move Emails from a shared Mailbox (inbox) to different folders inside this Mailbox based on Excel-data

Dear community,


I am trying to build a flow which moves mails from the inbox of a shared mailbox to different folders inside this shared mailbox (each folder belongs to one of my collegues and is named after their last name). 

In the subject of the mails are codes (i.e. CW00992) which are linked to the last name of the specific collegue in an excel file. 

So at the end I want the flow to check the code in the subject of every mail that comes in and move the mail to the folder of my specific collegue. 

I've been trying to put all this together but since I am a bloody amateur in Power Automate I'm kind of stuck..

So here is what I did so far:




Any help on this would be welcome!

Community Support
Community Support



In my opinion, there may be a issue in your flow, is not possible to put the step move the email inside the Apply to each, due to is an array, and you just have one email.


Are this codes statics values? may with a switch you can do this, with out using the excel connector.


Hope I can help you!

Frequent Visitor

@pjbeder Hi,

i want create the very same thing - move e-mail from shared mailbox inbox to another folder in the same shared mailbox.. did you solved this issue? if so, can you please send me screenshot of that flow? thanks a lot

Helpful resources

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,616)