cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SydSpiderman
Helper I
Helper I

PowerApps get collection data from PowerAutomate parallel store procedure.

Hi,

 

I have tested it works fine if there is only 1 store procedure.

Can I put the following in the Response body for parallel store procedure?

 

body('Execute_stored_procedure_(V2)')['resultsets']['Table1']

body('Execute_stored_procedure_(V2)_2')['resultsets']['Table1']

 

 

SydSpiderman_0-1604314055218.png

 

It runs fine in PowerAutomate as the response output comes out with the total from both store procedure, but PowerApps Collection always comes out with empty record.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

You can't just concatenate the arrays the way you are doing it.  You'll need to use the Union function to join the two arrays together.  I would also suggest using the Select action to limit the number of columns that you are in the arrays to the minimum necessary.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

You can't just concatenate the arrays the way you are doing it.  You'll need to use the Union function to join the two arrays together.  I would also suggest using the Select action to limit the number of columns that you are in the arrays to the minimum necessary.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Union function works like a charm, I have union 5 sp with one union functions & it only takes 7 seconds to retrieve 25k rows so far.

Thanks heaps

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (29,243)