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 Automate
Unanswered

comparing arrays

(0) ShareShare
ReportReport
Posted on by 4

Hi 

 

any help apreciated

 

I have 2 arrays

 

array1

 {
    "type": "1",
    "capture_date": "cap1",
    "sale_date": "sale1",
    "order_id": "order1",
    "short_order_id": "short1",
    "capture_id": "capture1",
    "merchant_reference1": "merch1",
    "merchant_reference2": "merch1a",
    "amount": "amount1",
    "posting_currency": "current1"
  },
  {
    "type": "2",
    "capture_date": "cap2",
    "sale_date": "sale2",
    "order_id": "order2",
    "short_order_id": "short2",
    "capture_id": "capture2",
    "merchant_reference1": "merch2",
    "merchant_reference2": "merch2a",
    "amount": "amount2",
    "posting_currency": "current2"
  },
 
Array2 
{
    "type": "2",
    "capture_date": "cap2",
    "sale_date": "sale2",
    "order_id": "order2",
    "short_order_id": "short2",
    "capture_id": "capture2",
    "merchant_reference1": "merch2",
    "merchant_reference2": "merch2a",
    "amount": "amount2",
    "posting_currency": "current2"
  },
  {
    "type": "4",
    "capture_date": "cap4",
    "sale_date": "sale4",
    "order_id": "order4",
    "short_order_id": "short4",
    "capture_id": "capture4",
    "merchant_reference1": "merch4",
    "merchant_reference2": "merch4a",
    "amount": "amount4",
    "posting_currency": "current4"
  }
 
I need to be able to loop through array1 to check if the values e.g. Type and Order_id are in Array2 if they are do nothing if they are not import them to excel
I can do the update rows n excel but cannot get the 2 arrays to check if the 2 values don't match
 
I have tried to loop through array1 and then nest a loop for array2 and add a condition which does not appear to work
 
I am new to powerautomate so if anyone could advise step by step help that would be great
 
Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at
    I have tried to loop through array1 and then nest a loop for array2 and add a condition which does not appear to work

    That's the right approach. Please show your work.

  • amat1976 Profile Picture
    4 on at

    Many thanks

     

    I have attached the flow i am using , issue is looks like its double looping

    I parse the csv file and then for every parse try compare against a list row of table from spreadsheet

    there are identical rows in both csv and xls which should flag as false

     

    many thanks 

    flow.jpg
  • amat1976 Profile Picture
    4 on at

    update - I have found were the loop was wrong and this now works  will post update of the working flow, many thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard