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 / Collate the output of ...
Power Automate
Answered

Collate the output of my html table to create summary message

(0) ShareShare
ReportReport
Posted on by 82

Hello, 

 

I have been searching to try and find a solution to my issue. 

 

I am trying to summarise the output of my data before it sends a message to teams/email etc. 

 

My flow looks like:

 

Step 1.jpgStep 2.jpgStep 3.pngStep 4.jpg

 

Once the html table is created, flow is sending an individual message for each condition that is true. I'd like to collate the information into one summary post. 

 

Any help is much appreciated, 

 

Craig

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @craigmk1987

    Are you adding the HTML table step inside or outside the apply to each? 

  • craigmk1987 Profile Picture
    82 on at

    Flow is automatically inserting it into an "apply for each". I couldn't find a way to retrieve it from outside 🙂

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @craigmk1987 

     

    Because you are adding the display name inside the Create HTML and this is generated through the Loop

    Mira_Ghaly_0-1596702144167.png

    I am suggesting that you create an array inside your apply_to_each and set it with the values you like by constructing a Compose data operation in Json format:

    {

    "DisplayName": "Display Name Value",

    "Property1": "Property 2 Value"

    }

    Append the output from the compose data operation to the array and then outside of the loop pass the array to the HTML table.

     

    If this post helps you with your problem, please mark your as Accepted solution.

    If you like my response, please give it a Thumbs Up.

    MG (Naturally Curious)

     

  • craigmk1987 Profile Picture
    82 on at

    Thanks Mira, 

     

    I'll give it a go - I'm learning and teaching myself as I go 🐵

  • craigmk1987 Profile Picture
    82 on at

    Mira, 

     

    When you say

     

    "Append the output from the compose data operation to the array and then outside of the loop pass the array to the HTML table"

     

    I'm not entirely sure I understand what you mean. I've tried the following:

     

    step 5.pngstep 6.png

     

    What I don't understand is that when composing a operation I'm not sure how to retrieve the output which is why I've tried to replicate the "select" variable I had used previously.

     

    When I add the table outside of the loop there is nothing that I can see that references something I can use (unless it's the current item?). If I try and use any of the "shift" connectors it creates a new apply to loop which will probably deliver the same result 

     

    Thank you in advance

  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    Hi @craigmk1987 

    This is what i mean

    Initialize array variable inside the loop, Construct JSON object and append to the array variable

    Mira_Ghaly_0-1596705207224.png

     

    Then construct the HTML table as below

    Mira_Ghaly_1-1596705296517.png

    If this post helps you with your problem, please mark your as Accepted solution.

    If you like my response, please give it a Thumbs Up.

    MG (Naturally Curious)

     

     

  • craigmk1987 Profile Picture
    82 on at

    Thank you Mira, 

     

    This resolved the issue and delivered exactly what I wanted. 

     

    Thank you !

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard