Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 0CCSty0Pk0hL54zK9xLEtF
Power Automate - Building Flows
Unanswered

Comparing List of Strings

Like (0) ShareShare
ReportReport
Posted on 5 May 2023 17:57:30 by 10

Hello ,

Currently have a flow that he output is the list of string below. I have my own list and need to compare it to the list of arrays below. Is this possible in Power automate and if anyone can get me started on how to build it, it would be greatly appreciated. 

 

I tried to use the conditional statement like this Hello3 > is equal to > Output_String. I dont want to use "contain' because if not it will return true for hello, hello2, hello3, hello4 not just Hello3.

 

My_list:

Hello3

Morning2

 

need to compare against this output below

 

Output_String:

[

[],

['Hello',

'Hello2,

'Hello3',

'Hello4],

['Morning',

'Morning2',

'Moring3]

]

  • schwibach Profile Picture
    Super User 2025 Season 1 on 06 May 2023 at 18:29:09
    Re: Comparing List of Strings

    Ah... sure, sorry, I use the union function on arrays with the same array to get unique values.

     

    You will have to go the first route I gave you.

  • btavarez Profile Picture
    2 on 06 May 2023 at 18:24:26
    Re: Comparing List of Strings

    I think he was trying to check if a different array which consists of Hello3 or morning2 then return true or false.

     

    ['Hello',

    'Hello2,

    'Hello3',

    'Hello4],

    [],

    ['Morning',

    'Morning2',

    'Moring3]

    ]

     

    not join two arrays...

     

  • schwibach Profile Picture
    Super User 2025 Season 1 on 06 May 2023 at 17:12:07
    Re: Comparing List of Strings

    You can do the following complicated version:

    Create an array variable.

    Then you use the use the filter array function inside a for each loop on one of your arrays and compare against each item of the other array, if the element is found you use the append to array function and add the element.

     

    Or you go the simple route and use an expression with the union function inside a compose action:

    union(outputs('ComposeArray1'),outputs('ComposeArray2'))

     

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,013 Most Valuable Professional

Leaderboard