Skip to main content

Notifications

Power Automate - Building Flows
Answered

Combine two dataverse tables

(1) ShareShare
ReportReport
Posted on by 52
Hi Experts,
 
I would like to create a flow that would combine some of the columns from two different dataverse tables. My identifier for both is the Case Number (generated from the app). Here's my current flow but not seems to be working. And the loading are super slow and I only have less than a thousand of data.

 
May I request for your advice, on how can I improve the flow?
 
Thanks in advance!
 
  • PPDEV Profile Picture
    PPDEV 52 on at
    Combine two dataverse tables
    Thanks @FLMike - This works! Have a good day.
  • AlexEncodian Profile Picture
    AlexEncodian 4,290 on at
    Combine two dataverse tables
    Hi,
    You can do this without any loops using the Encodian connectors, specifically the Encodian utilities connector and the action Utility - Array Combine
     
  • Verified answer
    FLMike Profile Picture
    FLMike 27,291 on at
    Combine two dataverse tables
    Hi,
     
    So I would not do it like this.
     
    1. Whatever is the Outer Master Table start there, meaning do your List Transactions Rows First
    2. Then do the Apply to each for step 1
    Inside that Apply to each, do your List Rows on the Cases, but filter it by the Case Number from the item() of the loop you are in, because right now for every single Transaction, you are looping through every single Case each time
    then do you append
     
    So if you have a 1000 Transactions
    you are looping 1-1000 and if you have 5000 Cases, you are doing this
     
    1
     1-5000
    1000
     
    So its massively slow
     
    So do that so speed it up exponentially
     
     
    So your Code per se is correct EXCEPT for your Questions
     
    List Rows Transactions
      Apply to each
        List Rows Cases (Filtered by item()?['case number'] (or whatever its called that matches
            Apply to each
               Append to your array
     
    Now do your steps outside the loops
     
     And you remove your condition totally as you do not need it.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard