Skip to main content

Notifications

Community site session details

Community site session details

Session Id : lWwE3XTl+jJU6gnK0LDvlC
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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 148 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 139

Overall leaderboard
Loading started