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 / Logic of extracting da...
Power Automate
Unanswered

Logic of extracting data using two responses?

(1) ShareShare
ReportReport
Posted on by 41

I have two SQL connectors pulling rows. Id like to use an apply to each to:
1 - check if a certain parameter in Connector A matches a certain parameter in Connector B (i.e. account name)
2 - then push some parameters from each connector to create a 'merged' array or list

 

I am struggling with the (probably quite basic) logic to handle this. Can anyone help?

Categories:
  • sandeepstw Profile Picture
    312 Moderator on at

    HI @Johnnyoc ,

     

    You can achieve this using these steps - 

    Initialize two array variables: ArrayA and ArrayB.
    Initialize MergedArray.

    Use "Get rows" action for SQL Connector A and assign to ArrayA.
    Use "Get rows" action for SQL Connector B and assign to ArrayB.

    In Apply to Each (ArrayA), Inside the loop, add a nested "Apply to each" for ArrayB.
    Inside the nested loop, add a condition to check if the parameters match.


    If the condition is true, use "Append to array variable" to add the required parameters from both arrays to MergedArray.

     

    Mark as solution if  it helps.

     

    Thanks,

    Sandeep Mishra

  • Johnnyoc Profile Picture
    41 on at

    Many thanks @sandeepstw !
    I've tried this but the flow was still running after 3 hours, any idea what I've done wrong? Both connectors have only 2000 objects.Screenshot 2024-06-07 at 12.24.37.png

  • sandeepstw Profile Picture
    312 Moderator on at

    Please send image of flow and some details of flow, So I can give you solution. 

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard