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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Compose action - no in...
Power Automate
Unanswered

Compose action - no input available from previous step

(0) ShareShare
ReportReport
Posted on by 70

Hello. Starting from two tables I want to join them using an unique common field and create an array to filter later. I followed steps from similar posts. Everything seem working except final step and general performance. 

 

02.JPG

 

About final step "Componi2" (a Compose action): I expect to see in the list of dynamic data also the output of "Componi", which is Compose action applied to each item of  Filter arrary "Filtra matrice Tab1-sx-Tab2", but no output from "Componi" is available as input for "Componi2".

 

01.JPG

 

In details:

"Applica ad ogni" is a "Apply to each" action. As output from previous steps I got "value" of Tabella1

"Filtra matrice Tab1-sx-Tab2" is a "Filter array" action. "Da" ("From") is "value" of Tabella2. Fields on left is "ID" field from "Applica ad ogni", is equal to field "ID" coming from Tabella2.

"Componi" action ("Compose") inside "Applica ad ogni" group have "ID", "field1" and "field2" from "Applica ad ogni", while "field3" and "field4" are from "Filtra matrice Tab1-sx-Tab2" output.

Without last step "Componi2" (out of "Applica ad ogni") the flow runs and checked that output of "Componi" is correct. 

When I try to compose "Componi2" I see that I can get as dynamic contents only those coming from Tabella1, Tabella2, "Applica ad ogni", nothing else.

Why there is not dynamic data available from "Componi"?

About performance: I have chosen this way to combine Tabella1 and Tabella2 because I read that's the right way to speed up operation. But with these basic tables (only few records used, just to test the model) takes about 10 seconds to complete output. I checked and output is ok (what expected). What's wrong?

Thanks 🙂

 

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Brucla1968  Pls use variable. Compose is inside loop so it’s scope is limited to loop. 

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Brucla1968 Profile Picture
    70 on at

    Hi @Hardesh15 , could you address me to an example? I will learn from it as I never used variables. Thanks

  • Brucla1968 Profile Picture
    70 on at

    Besides, also in this example 

    https://www.damobird365.com/one-to-one-relationship-between-data-in-flow/

    the Compose action is inside the loop but author was able to get its output out of loop. Whats' the difference?

  • Brucla1968 Profile Picture
    70 on at

    Hi @Hardesh15 , finally I understood what you mean and I found out the matter of variable: a variable is inizialized before "Apply to each" loop and inside the loop an Append action is apply to populate the variable. Out of loop I can compose variable and use result, ok. 

    Now it's still open the other big issue: performance. As you can see this simple loop takes 4 seconds. Conside that in Table1 I have only 13 records (and 3 fields) and in Table2 I have 8 records and 3 fields. In the real tables I have some hundreds records in both and much more fields. Surely I did not get the right way. What should I do to get it faster? Thanks

     

    01.JPG

  • v-xiaochen-msft Profile Picture
    on at

    Hi @Brucla1968 ,

     

    Let's go back to the original question - Why there is not dynamic data available from "Componi"?

    It's by design. We can get the value of compose which is inside the loop outside the loop. But if you want to see the dynamic content, we need 'Parse Json' action.

    Sample:

    vxiaochenmsft_0-1659508874822.png

    vxiaochenmsft_1-1659508936648.png

    vxiaochenmsft_2-1659508947205.png

    vxiaochenmsft_3-1659508968862.png

     

    Best Regards,

    Wearsky

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard