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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / multiple 'or' Conditio...
Power Automate
Answered

multiple 'or' Conditional Logic

(0) ShareShare
ReportReport
Posted on by 15

Hi, i have a question that i need assistance with. I have a or conditional logic to output emails if the condition matches. I have 150 servers that i manage where i need to know if there is an alert, i receive an email, that triggers my flow and sends me notification. I want to setup the condition where i get notification when it matches 'server123' and not 'server1'. with 150 servers, i want to be able to set the conditions that match the servers that i support only, and the input comes from a file in my onedrive. i cant seem to be able to figure out how to get this done. If i input the server names individually, the flow works perfectly, but i dont want to be able to input it manually in flow, i  rather edit the txt doc with my server details.

>input from file to match server name received from email

>if match, send notification

 

Any idea how i can go about this? i've tried everything and nothing seems to work :'(

 

Screenshot 2020-11-27 152627.pngScreenshot 2020-11-27 164750.png

 

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at

    I should be easily possible. What is your file containing the server names? Just a plain text file? You should be able to just get the file contents and then change your condition so that it does:

    listofServers - Contains - ServerWithProblem

     

    Then if the server reporting the alert is in your list, then it will fire you an alert.

  • amretpal Profile Picture
    15 on at

    Hi @Paulie78 ,

     

    Yeah, im getting the list of servers from a txt file. I need the server name to match exactly as the alert that is triggered, say if i support 'server2' but not 'server24', an alert on 'server24' will still trigger a notification to me as 'server24' contains 'server2' , hence i will need to use the is equal to function and this is where my problem is 😓

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    You can do what you want like this:

    https://ibb.co/mzMYzg7

    2020-11-27_16-36-56.png

    Explanation:

    You server is turned into an array and then the array is searched for a match against the servername. You will have to adapt it slightly for your example.

    You will also need to make sure your "servers" text file is using unix line endings, not dos style. You can check that in notepad++ or similar.

  • amretpal Profile Picture
    15 on at

    @Paulie78 , Mate that worked like a charm, thanks heaps! 🤗

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard