cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
derekl
New Member

Need help converting Microsoft Form to HTML table for email.

Hey all, I'm struggling to get an HTML table to be formatted from a Microsoft form into an email working. 

 

It currently looks like this from the flow that I have now. 

2022_07_14_15_56_07_Window.png

And this is the format that I'm trying to get to.

2022-07-14 15_54_54-Window.png

 

And then here is the flow

PA forms.png

 

Any help would be appreciated! Thanks 🙂

1 REPLY 1
MarconettiMarco
Super User
Super User

Hello @derekl ,

please after the "Create HTML table", add another Compose action in which put the formatted table:

 

<style>
table { width: 600px; background-color: #FFFFFF; color: #000000; border-color: #CCCCCC; border-collapse: collapse; }
th, td { width: 300px; }
</style>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>Employee's Name:</td>
<td>@{outputs('Get_response_details')?['body/r4439fa8a972149d7a914e9d70017ce16']}</td>
</tr>
<tr>
<td>Department/Craft Group</td>
<td>@{outputs('Get_response_details')?['body/r73892b4ca8e94071bdd8613fda02c8be']}</td>
</tr>
<tr>
<td>Current Supervisor/Manager</td>
<td>@{outputs('Get_response_details')?['body/rb2f0129ffc8c4714ba13c72b9dcf2e7a']}</td>
</tr>
</tbody>
</table>

 

Then put this Compose outputs in your email body:

MarconettiMarco_0-1657869305199.png

 

The Outcome is the following:

MarconettiMarco_1-1657869328314.png

 

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

BR,

Marco

 

 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (3,092)