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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Comparing List of Strings
Power Automate
Unanswered

Comparing List of Strings

(0) ShareShare
ReportReport
Posted on 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]

]

Categories:
I have the same question (0)
  • schwibach Profile Picture
    2 Moderator on at

    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'))

     

  • btavarez Profile Picture
    2 on at

    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
    2 Moderator on at

    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.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard