When working with emails, sometimes you need to keep your inbox organized by moving messages to specific folders. This can be especially helpful when dealing with large volumes of email. With Power Automate, we can move emails to folders based on specific conditions.
In this Power Automate tutorial, I will show you how to move an email to a folder using Power Automate and how to move an email to a folder based on specific conditions. I will also cover how to move an email to a folder based on the subject line and how to move an email to a subfolder using Power Automate.
Move Email to Folder Using Power Automate
I will show you how to move an email to a folder using Power Automate. For this example, I want the flow to trigger when I receive a new email and then move that email to the Project folder I created recently.

Now follow the steps below:
1. Create an automated cloud flow. Give the flow name and select the trigger When a new email arrives (V3). Select From from Advanced parameters and provide the sender with an email.

2. To move the emails to a different folder, add the Move email(V2) action and provide the following parameters:
- Message Id: Take ID from get emails of dynamic content.
- Folder: Select a Project folder from the folder icon.

Now, click on save and run the flow manually. Then, send an email from Patti Fernandez to Lidia Holloway.

After the flow runs successfully, check the Project folder in Outlook to see the moved emails.

This way, Power Automate moves the emails to a folder based on the sender.
Move Email to a Folder based on a condition using Power Automate
Let’s take a scenario where you want to move emails to a folder after 2 days of being received in Outlook using Power Automate. This can be useful for organizing and archiving emails based on their age.
To do this, follow the steps below:
1. Navigate to the Power Automate Home page, click + Create, and select the Scheduled Cloud Flow. Then provide the following information:
- Starting: Provide the date on which you want to run your flow.
- at: Provide the time you want to run the flow, in my case, at 9:00 AM.
- Repeat every: We want to run the flow daily.

2. Now, we need to retrieve emails from Outlook, so add the Get emails(V3) action and provide the parameters below:
- Importance: Select any from the drop-down.
- Only with Attachments: Choose Yes/No from the drop-down if you want to include attachments.
- Folder: Select the folder from where you want to move the emails.
- Fetch only Unread Messages: Select No from the drop-down.
- Include Attachments: Choose Yes/No from the drop-down if you want to include attachments.
- Search Query: Provide the expression to retrieve the last 2 days’ emails:
received < @{getFutureTime(2,'Day')}- Top: Provide 25 because it is the maximum.
Note:
In Power Automate, Outlook’s “Get emails” action is limited to retrieving up to 25 emails at a time.

3. To move the emails to a different folder, add the Move email(V2) action and provide the following parameters:
- Message Id: Take ID from get emails of dynamic content.
- Folder: Select a Project folder from the folder icon.
It will automatically add a For Each loop.

Now, click on save and run the flow manually. After the flow runs successfully, go to the Project file, and you can see that the email was moved successfully.

Move Email to a Folder based on Subject in Power Automate
Imagine you’re part of a “Power Platform Projects” team and receive a large number of emails related to different projects in your Outlook inbox. To keep things organized, you’ve set up separate folders for each project within your inbox, such as:
- Power App
- Power Automate
Now, you want to set up a flow to check the subject line of each new email. If the subject contains “Power App,” the email will be moved to the Power App folder; if it contains “Power Automate,” it will be moved to the Power Automate folder.
Now follow the steps below:
1. Select Automated cloud flow and choose the trigger When a new email arrives (V3). Then add a condition action that checks whether the subject content is Power App or Power Automate.

2. Then, inside the true section, add another condition, which is to check whether the subject content is Power App or not.

3. Inside the true section add the Move email(V2) action and provide the below parameters:
- Message Id: Take ID from get emails of dynamic content.
- Folder: Select a Power App folder from the folder icon.

4. In the same way, inside the false section, add the Move email(V2) action and provide the parameters below:
- Message Id: Take ID from get emails of dynamic content.
- Folder: Select a Power Automate folder from the folder icon.

Now, click Save and run the flow manually. Then, go to another Outlook account and send an email with “Power App” in the subject line.

After the flow runs successfully, go to the Power App folder in Outlook, and you can see that the email was moved successfully.

In the same way, send an email with “Power Automate” in the subject line.

After the flow runs successfully, go to the Power Automate folder in Outlook, and you can see that the email was moved successfully.

Move Emails From One Folder to Another in Outlook using Power Automate
Imagine you’re part of a “Power Platform Projects” team and receive a large number of emails related to different projects in your Outlook inbox. To keep things organized, you’ve set up separate folders for each project within your inbox, such as:
- Power App
- Power Automate
- Power Platform
The above flow shows how to move emails to the Power App and Power Automate folders based on their subject. I want the Power App and Power Automate folders email to move to the Power Platform folder.
Follow the steps below:
1. Create an Instant cloud flow and provide the flow name, choose the flow trigger (manually trigger a flow). Add the Get emails(V3) action and provide the parameters below:
- Importance: Select any from the drop-down.
- Only with Attachments: Choose Yes/No from the drop-down if you want to include attachments.
- Folder: Select the Power App folder.
- Fetch only Unread Messages: Select No from the drop-down.
- Include Attachments: Choose Yes/No from the drop-down if you want to include attachments.
- Top: Provide 10.

2. Add the Move email(V2) action and provide the below parameters:
- Message Id: Take ID from get emails of dynamic content.
- Folder: Select a Power Platform folder from the folder icon.
It will automatically add a For each.

Now, click on save and run the flow manually. After the flow runs successfully, go to the Power Platform, and you can see that the email was moved successfully.

In the same way, you can move all emails from the Power Automate folder to the Power Platform folder; you only need to change the folder name in the Get emails(V3) action.
Move the Email Folder to the Subfolder Using Power Automate
Imagine you have a folder in Outlook called Power Platform. Inside that, you’ve created two subfolders:
- Power Automate – for emails about Power Automate
- Power Apps – for emails about Power Apps

When an email arrives in Power Platform with “Power Automate” in the subject line, you want it to move into the Power Automate subfolder. And if it has “Power App” in the subject, it should go to the Power Apps subfolder.
Now follow the steps below:
Create an instant cloud flow, provide the flow name, and choose the flow trigger (manually trigger a flow). Add the Get emails(V3) action and provide the parameters below:
- Importance: Select any from the drop-down.
- Only with Attachments: Choose Yes/No from the drop-down to include attachments.
- Folder: Select the Power Platform folder.
- Fetch only Unread Messages: Select No from the drop-down.
- Include Attachments: Choose Yes/No from the drop-down if you want to include attachments.
- Top: Provide 25.

Then, add a condition action that checks whether the subject content is Power Automate or not.
It will automatically add a For each.

Inside the true section, add the Move email(V2) action and provide the parameters below:
- Message Id: Take ID from get emails of dynamic content.
- Folder: Click the -> button of the Power Platform, then select Power Automate.

Inside the false section, add the Move email(V2) action and provide the parameters below:
- Message Id: Take ID from get emails of dynamic content.
- Folder: Click the -> button of the Power Platform, then select Power App.

Now, click on save and run the flow manually. After the flow runs successfully, go to the Power Automate and Power App folder, and you can see that the email was moved successfully.

In this tutorial, I explain how to use Power Automate to move emails to specific folders in Outlook based on different conditions. We covered scenarios such as moving emails based on the sender and organizing emails by subject line into project folders.
Additionally, I explain how to move emails from one folder to another in Outlook using Power Automate and how to move an email to a subfolder using Power Automate.
Also, you may like some more Power Automate articles:
- Power Automate Send Email On Specific Date
- Update SharePoint List Items Based On Condition Using Power Automate
- Create PDF From Microsoft Forms Using Power Automate
- Update SharePoint List Items Using Power Automate
- Send a No Reply Email from a Specific Sender Name in Power Automate
- Save SharePoint List Attachments to a SharePoint Library Using Power Automate

After working for more than 18 years in Microsoft technologies like SharePoint, Microsoft 365, and Power Platform (Power Apps, Power Automate, and Power BI), I thought will share my SharePoint expertise knowledge with the world. Our audiences are from the United States, Canada, the United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a Microsoft SharePoint MVP (12 times). I have also worked in companies like HP, TCS, KPIT, etc.
Sorry but this was not helpful. I cannot get any of this to actually work correctly. My work stores emails for 90 days and I would like to every month archive emails into an Outlook Saved mail folder from select people, but every time I try and use the output as From it doesn’t work. I was able to get it to work only one time using the very first section of this article, but it would not archive anything beyond like the first 7 days. HELP!
This does not move emails to folder after 30 days. This move emails to folder every 30 days. The difference is that moving the email after 30 days keeps messages in our mailbox for 30 days and then moves them. A workflow that runs every 30 days will move a one-day old message if that message hits the inbox the day before this scheduled action runs. The ideal solution runs daily and moved items that are 30 days old.