web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

get Outlook Category

(0) ShareShare
ReportReport
Posted on by 26

Hi,

 

we got a shared mailbox and do categorise the emails.

I want to forward the emails by category. 

 

I already wrote a vba solution but i cant figure out how to trigger my script by Power Automate.

 

Is there a way to get the category property in a flow or to trigger my vba script?

Categories:
  • VictorIvanidze Profile Picture
    13,083 on at

    Use a GRPAH request.

    Here is shown how to assign a category - you can modify this flow.

  • Verified answer
    Tim_Schwarz_CT Profile Picture
    26 on at

    Thank you for your help 🙂 

     

    Sadly we dont have Azure thats why i was looking for new solutions and i found a very easy one. 

    To get the category one can use the search query by "get emails (v3)" like shown in my picture:

    Tim_Schwarz_CT_0-1666604648859.png

     

    maybe others will find this usefull too  🙂

     

     

  • VictorIvanidze Profile Picture
    13,083 on at

    Hi @Tim,

    how your approach will help if I don't know the name of category?

  • Tim_Schwarz_CT Profile Picture
    26 on at

    in that case in dont know, maybe its possible to work with an index aswell. Or u try to get a part of the string and start all categories with the same String. I didnt have enough time to try it yet. If i stumble upon a solution i willl reply.

    But i think usually if someone uses categories in outlook he should know how they are named. Then you could for excample use a table in the flow to store all possible values and search for the ones needed. 

  • mevargasc Profile Picture
    14 on at

    It's possible I have done already , so if somebody needs yet , I can upload the captures

  • SerdarCoban Profile Picture
    2 on at

    Could you share your solution, please?

  • Siraj M Profile Picture
    2 on at

    Using the syntax recommended in the solution, it searches for the specified text in the email subject and body instead of searching for emails labeled with that category. Could you please verify its functionality by creating a category with a custom name on your end?

    code view for email search with category.jpg
  • Tim_Schwarz_CT Profile Picture
    26 on at

    Hi Siraj,

     

    the flow is working i set it up for our company multiple times.

    Here is a testflow with the category "Test_123".


    Tim_Schwarz_CT_0-1701675965678.png


    Tim_Schwarz_CT_2-1701676123516.png

     

     

     

  • JBCFK Profile Picture
    4 on at

    You can also create a custom view in View Settings where you can concatenate the original email subject  field with your Category name. 

     

    View Settings--> Columns --> New Column --> change Type to 'Combination', Edit the formula, Insert (under 'All Mail Fields') choose the field you want to use in conjunction with your Category, as well as your Category. My O365 has 2 "Categories" selections, not sure why, but only the one without the ".." at the end worked for me. This function also seems to allow additional text to be displayed in the new view, i added some asterisks to raise awareness.  

     

    JBCFK_0-1704923746456.png

     

    Capture.PNG
  • JBCFK Profile Picture
    4 on at

    NOW IF SOMEONE CAN HELP ME PULL IN THIS CONTENT IN THE CREATED FIELD.... 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard