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 / Create an HTML Table f...
Power Automate
Unanswered

Create an HTML Table from MS Forms responses

(0) ShareShare
ReportReport
Posted on by

I'm struggling to generate an html table filled with responses of a MS Forms, i'm using this approach:

 

https://powerusers.microsoft.com/t5/Building-Flows/Create-HTML-Table-from-MS-Flow-inputs/m-p/482273#M59069

 

However, the issue is that i have several key-value pairs filled in a same form, tried to solve it by putting them in the same sentence, this is an example with the two first groups of answers of the same form reply, by using the method above:

 

moralespiedrahi_1-1639078668043.png

 

however, in this way, only the last group of values is appended and included in the HTML Table

moralespiedrahi_0-1639078593891.png

moralespiedrahi_2-1639078761011.png

is it something i'm coding wrong in the json parsing side of the append? tried with different vignete configurations and only this one showed as a valid json sentence.

 

this is my expected Table output every time the form is submitted:

 

CCMS NumberBegin TimeEnd Time
CCMS1Beg1End1
CCMS2Beg2End2
CCMS3Beg3End3
CCMS4Beg4End4
CCMS5Beg5End5
Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @Anonymous 

    In the "Append to array variable 2" you should append 2 items and not one, using the following expression:

    [
    {
    	"CCMSID": "...",
    	"Beg_Time": "...",
    	"End_Time": "...",
    },
    {
    
    	"CCMSID": "...",
    	"Beg_Time": "...",
    	"End_Time": "...",
    }
    ]

    Using [ ] you're creating an array, which will have 2 items (using {} and using "," as separator").

    Hope it helps!

    Ferran

  • Community Power Platform Member Profile Picture
    on at

    thanks @fchopo ! however, with this structure, im getting an error in the create HTML table module, 

    this one when I setup the columns automatic:

    moralespiedrahi_1-1639131305632.png

     

    this one if I set it custom and each value as item()?['...']

    moralespiedrahi_0-1639131240646.png

    When I use this structure with only one case:

     

    moralespiedrahi_0-1639133136929.png

    I got good results, and it seem like the create HTML Table module adds the [] brackets: 

    moralespiedrahi_1-1639133171922.png

    but without the brackets in the append when I try to get more than one case, it shows that is not a valid json

    moralespiedrahi_2-1639133320439.png

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    finally got the workaround: append each case in an individual module:

    moralespiedrahi_1-1639136509901.png

     

  • Ankitxev Profile Picture
    4 on at

    You can use HTML code to create a table in the email and use results from form:

     

    Ankitxev_1-1659376684309.png

     

     

  • Mia_ Profile Picture
    20 on at

    I'm struggling with the same thing, you can't just pick the form to make the base data of HTML (like you could a sharepoint table!)

    Why does everything have to be so hard and messy (?!)

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard