Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Unanswered

Create email folders based on email subject data

Like (0) ShareShare
ReportReport
Posted on 9 Jun 2023 21:45:38 by

trainejf_0-1686346522303.png

 

Looking to create and add to Outlook folders based on job #'s that are specified within email subject lines.
Email subject lines contain something like "ABC-##-##-Z##" with different #'s based on different jobs.
For example, if I get an email that contains the following subject: "Following up on your request for ABC-03-24-Z01", I would like that email to be be automatically moved to an "ABC-03-24-Z01" folder. If no "ABC-03-24-Z01" exist, a new folder should be created.

 

Is this something that can be done using rules on Outlook or could it be possible using Power Automate Desktop/cloud?

 

 

  • VictorIvanidze Profile Picture
    12,248 on 03 Jul 2023 at 07:14:04
    Re: Create email folders based on email subject data

    Have a look at this: https://www.ivasoft.com/sortemailsflow.shtml

  • Nived_Nambiar Profile Picture
    17,554 Super User 2025 Season 1 on 11 Jun 2023 at 12:36:39
    Re: Create email folders based on email subject data

    Hi @trainejf 

     

    For creating folders use http request like below to create folders

     

    Nived_Nambiar_0-1686486763442.png

     

     

    here it will create Important Folder under the folders section 

     

    Note: this endpoint will create folder under outlook account of currently autenicated user 

     

    for more details on endpoint refer here 

    https://learn.microsoft.com/en-us/graph/api/user-post-mailfolders?view=graph-rest-1.0&tabs=http

     

    Also i have a question

    does the email subject would have Job # at the end of subject or in middle ?

     

    Kindly let me know 🙂

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 11 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 4

#2
John_Mavridis Profile Picture

John_Mavridis 4 Microsoft Employee

Overall leaderboard