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 / Outlook subject search...
Power Automate
Unanswered

Outlook subject search with list of conditions

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, I am currently setting up a flow which if the subject contains a specific location, then to forward an email to the relvent person. Please see below as a sample. However, I have hundreds of locations in the list and it must be some smarter way than typing it one by one. Please if I can have some advice? Appreciated for the help 🙂

 

mark123_1-1658241720224.png

 

 

Categories:
I have the same question (0)
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @Anonymous 

    Use switch condition and provide the locations

    OR

    Create a SharePoint list with all your locations and relevant email ids.

    Try this in the flow:

    Trigger-- You know it already

    Action-- Get the subject from trigger output, Filter SP list with it. Filter result should give you one result. Now get the relevant email id from email id column and use it to send an email.

     

    Any issues wrt interpretation, do let me know.

     

    Hope it helps!!

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks Ankesh can I have a bit more explanation please! So I upload the list of location I have to an excel on Sharepoint? But then how can I select the exact column to power automate as a filter? Thank you!

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @Anonymous  Here is what you should do, create a SharePoint list from the location data which you have in excel(No need upload excel spreadsheet to SharePoint. 

     

    Ankesh_49_0-1658762092275.png

     

    Once you have the SP list create, use get items action and insert your filter query. You can use Dynamic data here coming from previous action.

    Ankesh_49_1-1658762568159.png

     

    Should you require any further information, do let me know.

     

    Thanks

    Ankesh

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard