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 Platform Community / Forums / Power Automate / Search outlook email c...
Power Automate
Suggested Answer

Search outlook email content in SharePoint List and set the category of outlook email.

(1) ShareShare
ReportReport
Posted on by 30
I am creating a an automation Process, which will rum when outlook email received. i need to do the following.
 
1. Read To, From, Subject and Body of the email.
2. Maintaining a SP List which i am using to search email content (Example : if Subject containing keyword "ABC" go and look ABC in the list and find the respective columns value. I am using that value to set the category of the email. 
 
similar like this i need to search Body, From, To etc. content into the list and find the matching column value from the list.
 
Any suggestion/link/guidence.
 
Thanks,
 
Anurag
 
 
 
 
I have the same question (0)
  • Suggested answer
    Tomac Profile Picture
    4,153 Moderator on at
     
    This forum is for helping resolve issues in existing flows. When you build something and have a specific issue or error, feel free to post about it.
     
    If you're looking for somebody to design and build a complete solution, you should engage the services of a professional developer.
  • N962908 Profile Picture
    30 on at
    I am looking some steps to follow.. like connectors, build-up the logic. that is all 
  • Suggested answer
    Valantis Profile Picture
    6,735 on at
     
    Here's the flow pattern to build this.
    Connectors you need:
    - Office 365 Outlook (trigger + set category)
    - SharePoint (get items)
     
    Flow structure:
    1. Trigger: When a new email arrives (V3)  Office 365 Outlook. Set Include Attachments to No, Only with Attachments to No.
     
    2. Get items (SharePoint)  point to your keyword list. Add an OData filter to find matching rows:
    substringof('your_keyword_column', triggerOutputs()?['body/subject'])
    Or use a contains check on the subject.
     
    3. Condition: check if the Get items returned any results:
    length(body('Get_items')?['value']) is greater than 0
     
    4. In the Yes branch: get the category value from the first matching row:
    first(body('Get_items')?['value'])?['YourCategoryColumn']
     
    5. Set up on email (V2) — Office 365 Outlook. Use the Message Id from the trigger and set the Categories field to the value from step 4.
    For matching on multiple fields (Subject, Body, From), add more Condition checks or add multiple Get items calls each filtered by a different field, then combine the results.
     
    One tip: the OData filter on SharePoint does a server-side contains check which is efficient. Use it rather than looping through all list items.
    If you get stuck on a specific step or error, share the details and we can help.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard