Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 12G5/UbuLyij03OOKdaO0Y
Power Automate - Building Flows
Unanswered

Trigger a flow when an Outlook Email is categorised using color coding

Like (13) ShareShare
ReportReport
Posted on 18 Jan 2021 17:38:23 by 1,089

I would to trigger a flow when an email is categorized (color coding) for which there isn't any trigger. If it isn't possible, I am also ok if the flow can be triggered when an email is manually moved to a folder when arrived which as well is not possible. I don't want to filter email with sender or subject to categorize them as the business case doesn't allow. Only feasible option I see is when email is flagged but how can we categorize it? How can I find information related to the flag from flow? There isn't any dynamic properties available regarding any flagging. I ultimately want to create tasks in several buckets in planner for categorized emails. What all options am I left with?

  • rsharyf Profile Picture
    13 on 22 May 2024 at 08:42:58
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Hi all, I just wanted to check if there's a flow to add the number of email marked as "Completed" in category. Output should be on Excel

  • DanielSch_1984 Profile Picture
    2 on 03 Apr 2024 at 14:29:46
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Hi,

    I also would like to implement your workaround.
    Do you have any information on how this would work with more then a hundred mails arriving every day?

    (do all these "stuck" flows use ressources all the time, does that impact usability of the mailbox anyhow, etc. )

  • krzysztof-p Profile Picture
    on 14 Mar 2024 at 09:06:45
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Thank you, Paweł. I've just adapted this solution by adding the creation of a Planner task for different teams, based on a manual approach with Outlook categorization labeling.

  • PawelL Profile Picture
    12 on 02 Feb 2024 at 10:46:48
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Hi, I would like to share my workaround to trigger an action when mail is categorized.

    the idea is to create a loop which checks if arrived emial has a category.

    PawelL_0-1706869552843.png

    when a new emial arrives get emial ID and then send http request to get metadata of this mail, then parse json and create a variable with category

    PawelL_1-1706870062185.png

    in next step create a loop with do until. The value is a variable with category, the loops will run as long as category is not blank. You can also setup a timeout (in my case it's 7 days)
    In the loop add a delay to determine how often it should refresh, after that send another http request to get details of this mail, then parse json and set variable with category. If the category is not empty flow will get you to next step.

    PawelL_2-1706870394717.png

    in the last step I used switch so depending on the name of category you can do different things. Personally I'm using adaptive cards to inform via teams specific person that emial was assigned to them, but you can also add an action to move this mail to specific folder. Keep in mind that when you parse json you will get your category in format ["Category"] so when setting variable i used expresion: 

    first(body('Parse_JSON')?['categories']) to get Category.
    above flow is setup for sharedmailbox if you want to do the same with personal mailbox just use this http request:
    https://graph.microsoft.com/v1.0/me/messages/mailID

    hopefully you will find is useful 🙂 

     

  • RicardoLuengo Profile Picture
    2 on 05 Oct 2023 at 21:48:31
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Something that might might be helpful here. I created actions in outlook to move and flag an email with shortcuts.

     

    Ex. Crtl+Shift+1 move the selected mail to a folder and flagged at the same time (well, after it has moved).  So finally the taks is created in the planned i associated to the Folder.   

     

    I hope it helps.

  • FabioCoelho Profile Picture
    15 on 21 Jun 2023 at 21:14:13
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Hi, any word if this feature is supported by now? Can we get an update or at least know if this is due to be implemented? 

  • oudeh Profile Picture
    13 on 20 Jun 2023 at 10:17:47
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Hi, 
    2.5 years later... can you tell me if this is supported now?

  • kayhowe_ Profile Picture
    5 on 16 May 2023 at 23:44:03
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Do any of you know if there is an update in the works to add a Category trigger?

     

  • lisaneilson82 Profile Picture
    11 on 30 Jan 2023 at 12:11:51
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    not that i know of 😞

  • mcundiff Profile Picture
    38 on 27 Jan 2023 at 18:29:35
    Re: Trigger a flow when an Outlook Email is categorised using color coding

    Hey Microsoft, 

     

    Can you get this to happen or what?

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 - Building Flows

#1
stampcoin Profile Picture

stampcoin 87

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard