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 / get differences from 2...
Power Automate
Answered

get differences from 2 arrays

(0) ShareShare
ReportReport
Posted on by 45

Hello,

 

I have 2 compose where I get these arrays:

 

Compose 1: ["One","Two","Three"]

Compose 2: ["One","Two","Three","Four","Five"]

 

And I want to get the difference of the 2 arrays: ["Four","Five"].

 

How can I do this?

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Animoroly 

     

    Please refer to the flow screenshot below:

    qq.png

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • golfnutt82 Profile Picture
    1,360 on at

    Hello,
    Thanks for providing the above. However, this doesn't seem to resolve my issue.
    Can you please review and let me know what I might be missing?

     

    golfnutt82_2-1669578175378.png

    golfnutt82_3-1669578224808.png

     

     

    golfnutt82_1-1669577915032.png

    golfnutt82_4-1669578281107.png

     

     

  • merlinow1 Profile Picture
    4 on at

    In your latest example you are testing if array1example [ 1, 2, 3, 4, 5] has these items array2example [1, 2,3] and you can see that it does... in order to get the behaviour you are looking for here, you would have to invert.

     

    Does [1,2,3] contain items [1,2,3,4,5] - and then 4 and 5 would standout.. I am also looking for at neat way to test arrays both directions in a single statement.

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 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard