Essentially I have two arrays, lets call them array X and array Y. I want to check each variable inside of array X, to see if it matches any variable inside array Y. Each time it does match, my loop will run.
Ex:
Array X { test , test2 , test 3 }
Array Y { test, test3, test4, test5 }
The loop would run 2 times, because array X and Y share two values.
Thank you! 🙂
Solved! Go to Solution.
Hi @Anonymous
Please check if this helps:
Hello davidh12,
You can achieve this in different ways, one you can try:
Get your 2 lists
Add the first list with the values that should be found in the second list into a "Apply to each" flow node.
Next within that node, add a "Condition" control node, in this node use the condition "contains"
like the picture above, use your second list on the right, and the output of your condition on the left.
i had numbers 1,2,3 in list 1, and 1,3,4,5 in list 2
This is the result of my flow:
As you can see, the flow only continued in the first and last iteration when it checked if 1 and 3 was found in list 2.
I hope this Answers your question.
Hey @JamesYumnam,
Thank you for the help. I did run into an error though, unsure why:
NVM --- Was using wrong variable. Thank you!!
Could you please show all the steps or atleast where you have initialised your array?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
28 | |
27 | |
23 | |
14 | |
10 |
User | Count |
---|---|
62 | |
50 | |
30 | |
29 | |
24 |