Skip to main content
Community site session details

Community site session details

Session Id : 3KxFsCY1q2he0740ap3qPN
Power Automate - Building Flows
Unanswered

Move Email to Outlook Folder Matching String, then Save Attachment to OneDrive Location Matching String

Like (0) ShareShare
ReportReport
Posted on 8 May 2023 22:28:17 by

Hi there!

 

I’m quite new to Power Automate and am looking to build a flow that can accomplish what I’ve detailed below.

 

When an email arrives within Outlook, do both of the following:

 

A. If subject line contains a string from a list of strings declared, move that email to an Outlook folder containing the matching string in its name.


AND

 

B. Save any attachments to a OneDrive for Business folder containing the same string in its name.

 

Context:

 

I manage a pipeline of clients for my sales team and my folders in Outlook are labeled by the client’s last name.

 

Let’s say my client, Mr. Jones, sends me an email with an income statement attached. I’d like for my flow to move the email to the folder titled “Jones” and then save the attachments to the OneDrive for Business folder that’s also titled “Jones.” Now, the attachments won’t always have file names that match the string, therefore the save attachment action would ideally need to run AFTER the move action is completed, unless I’m missing something.

 

I’m currently using Outlook rules to accomplish the move emails piece. It works fine, but it’s cumbersome. I have to create a new rule for every client. Sometimes the rules disappear. No option for save attachments.

 

Because our pipeline changes all the time, with clients coming and going, I’d like to be able to have one flow for the whole pipeline - one that references a master list of strings (mostly client names, maybe emails) that can be edited when a client is added or when a client leaves. If I have to have one flow per client, then so be it.

 

Any guidance is appreciated!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2