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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Looking up array value...
Power Automate
Unanswered

Looking up array values in Power Automate

(0) ShareShare
ReportReport
Posted on by 381

I have two array variables that look like this 

 

Array 1 : 

[
  8467345623,
  4456147543,
  4355146413,
  1345316612,
  1862567160,
  1920023581
]
 
Array 2
[
  1934469786,
  1766243603,
  1546757720,
  1161894356,
  1345316612,
  1862567160
]
 
What is the best way to do a lookup, so if any values match, then it needs to be flagged. 
 
I tried to do a condition inside a apply to each look where i wrote
 
For Each Array 1,
  If Array 1 is equal to Array 2 then do this.... 
 
But it doesnt work - it appears to look at every value in the array, i need it to look at each individual value. 
 
Thanks
Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey Mate,

     

    Can you have a look at the https://powerusers.microsoft.com/t5/General-Power-Automate/get-differences-from-2-arrays/td-p/304051

     

    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!

  • Vstar19 Profile Picture
    381 on at

    Thanks. 

     

    I have kind of got it to work, but now i have the issue below

    I have two arrays. 

     

    Array 1 is the first output. and Array 2 is the bottom output (With the formatting)

     

    Vstar19_0-1618494184377.png

     

    I have a If condition written where if the numbers match, then do this etc. 

     

    If you look at the top output and the bottom output, they look the same, but the bottom output is formatted as XML, therefore i beleive the condition is not picking them up as the same. 

     

    Any ideas on how to resolve that? (p.s i can assure you the employeeNumber is exactly the same in both outputs - i just crossed it out)

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard