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 Apps / Multiple TextInput rec...
Power Apps
Answered

Multiple TextInput records from PowerApps to HTML table within Flow with a click of a button

(0) ShareShare
ReportReport
Posted on by 17

Hi all,

I would love some help.

 

I have created a PowerApps with three TextInput (TextInput1, TextInput1_1 and TextInput1_2). All I want is with a click of button to trigger a Flow so I can export records from multiple TextInputs into an HTML table.

 

My Flow is called HTMLtoPDF.

 

What should I type under the "OnSelect" for the button within the PowerApp? I currently have the following:

<p>HTMLtoPDF.Run(TextInput1.Text, TextInput1_1.Text, TextInput1_2.Text)</p>

 

What should I type within the table in the HTML below?

<p> <table>
<tr>
<td>Column 1</td>
<td>{{TextInput1.Text}}</td>
</tr>
</table> </p>

 

Please see screenshots attached

1. PowerApps screen.jpg
3. Final image.jpg
2. HTML table.jpg
Categories:
I have the same question (0)
  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @AlexisCh ,

     

    You can try to write your html text in compose in flow.

    Below is my test for your reference.

    vdezhilimsft_0-1675735577122.png

    vdezhilimsft_1-1675735654537.png

    vdezhilimsft_2-1675735685666.png

    vdezhilimsft_3-1675735704570.png

    vdezhilimsft_4-1675735731972.png

     

    Best Regards,

    Dezhi

     

     

  • AlexisCh Profile Picture
    17 on at

    Hi Dezhi,

     

    much appreciated. It works great!

     

    Have a couple more questions.

    1. What if I have a mix of controls. For example one textInput, one drop down list and one date. Can I pass dropdown selection to Flow? For example can I have something like this > HTMLtoPDF.Run(TextInput1.Text, DropDown1.List, Date1.xxx). I don't know the Syntax for dropdowns or dates. However, if that doesn't work, I plan to convert everything to Text so I can pass all my records to Flow.

     

    2. Do you know whether I can use some CSS code in the HTML code within the "Compose" to improve the look of the table?

     

    Many thanks
    Alex

  • Verified answer
    Shavar_Scott Profile Picture
    175 on at

    @AlexisCh , yes. You can use CSS code in the HTML to style your table. 

     

    Here is an example:

     

    Shavar_Scott_0-1675803100534.png

    That will format your table as below:

     

    Shavar_Scott_1-1675803244266.png

    For more table formatting tips visit https://www.w3schools.com/html/html_tables.asp

  • AlexisCh Profile Picture
    17 on at

    Hi @v-dezhili-msft Dezhi or anyone who might know,

     

    Do I need to add a dynamic Content/Expression under the "Body" ?

     

    BodyIssue.jpg

     

    I tried your solution, the HTML file works fine. However, the PDF file cannot be opened. I wonder whether I need to add dynamic content/Expression to the "Body" as shown in the screenshot.

     

    Many thanks in advance for any help.

     

    BodyIssue.jpg
  • Verified answer
    Shavar_Scott Profile Picture
    175 on at

    @AlexisCh ,

     

    Try putting the file content generated from the "Convert file using path" step into in the File Content field.

     

    Also, ensure that the file name is being stored with .pdf on the end.

     

    Shavar_Scott_0-1675865995789.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • AlexisCh Profile Picture
    17 on at

    Amazing! Works great!

  • AlexisCh Profile Picture
    17 on at

    @v-dezhili-msft Hi again,

     

    this solution works great when you have less than 20 TextInputs.

     

    Unfortunately I have more than 20 inputs in my original app. Is there a work around for when we have more than 20TextInputs?

     

    There are limitations within the PowerApps and Flow/PowerAutomate.

     

    Many thanks again for your help.

     

     

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard