Skip to main content

Notifications

Community site session details

Community site session details

Session Id : LBVgNh5nEhsFJ8LM8py+d1
Power Automate - Building Flows
Answered

Compose a HTML table but received a blank result

Like (0) ShareShare
ReportReport
Posted on 3 Apr 2022 13:47:51 by 387

Hi PA veterans,

 

I am trying to create a flow:

Read From Responses >  Apply to Each (Get Response Details > Compose > Create HTML file > Convert PDF  > Save attachment to SP List).

 

Regarding the Compose action,

Q1: I'd like to create the following table using the code below but I always get a blank PDF at the end of the flow. I checked my codes on HTML Code - 𝗢𝗡𝗟𝗜𝗡𝗘 𝗪𝗘𝗕 𝗗𝗘𝗩𝗘𝗟𝗢𝗣𝗘𝗥 𝗧𝗢𝗢𝗟𝗦 (html-css-js.com) and it seems to work. Not sure why it's not working in the Compose action. Does anyone possibly know why?

 

Thank you.

 

1

Invoice Type

   Paid  Invoice Number(s):   

☐   Unpaid                Invoice Number(s):  

2

Invoice Owner

   Title      Full Name  

       Mobile Number (Mandatory)/ Office Number (Optional)

 

☐   External  

    

☐   Internal   

   

More info check: Website.

Invoice Checklist

Date Completed

 Additional Checklist

Date Completed

Checklist 1

Date   

Name    

Date 

Checklist 2

Date 

Name     

Date   

Checklist 3

Date  

Name  

Date   

4

Comment

 

5

DECLARATIONS

  I have read the ….

 Signature:   

 

NAME: 

DATE: 

  I have provided the….


 Signature: 

 

NAME: Full name

DATE: 

 

The table above in its HTML codes:

 

<table width="0">
<tbody>
<tr>
<td width="40px">
<p><strong>1</strong></p>
</td>
<td colspan="5" width="688.958px">
<p><strong>Invoice Type</strong></p>
</td>
</tr>
<tr>
<td colspan="6" width="728.958px">
<p><strong>☐</strong><strong>&nbsp;&nbsp; </strong><strong>Paid&nbsp; </strong><strong>&rarr;</strong> <strong>Invoice Number(s):&nbsp;&nbsp;&nbsp;</strong></p>
<p><strong>☐&nbsp; </strong><strong>&nbsp;Unpaid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong>&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&rarr;</strong> <strong>Invoice Number(s):&nbsp;&nbsp;</strong></p>
</td>
</tr>
<tr>
<td width="40px">
<p><strong>2</strong></p>
</td>
<td colspan="5" width="688.958px">
<p><strong>Invoice Owner</strong></p>
</td>
</tr>
<tr>
<td colspan="6" width="728.958px">
<p><span> <strong>&nbsp;&nbsp; </strong>Title&nbsp;</span><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><span>Full Name&nbsp;&nbsp;</span></p>
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mobile Number (Mandatory)/ Office Number (Optional)</span>
<p>&nbsp;</p>
<p><strong>☐&nbsp;&nbsp; </strong><strong><u>External</u></strong> &nbsp;</p>
<p><strong><sup>&nbsp; &nbsp;&nbsp;</sup></strong></p>
<p><strong>☐&nbsp;&nbsp; </strong><strong><u>Internal</u></strong><strong>&nbsp; &nbsp;</strong></p>
<p><span>&nbsp; &nbsp;</span></p>
<p>More info check: <span><a href="https://www.abc.com/">Website</a></span>.</p>
</td>
</tr>
<tr>
<td colspan="2" width="209.384px">
<p><strong>Invoice Checklist</strong></p>
</td>
<td width="88.7879px">
<p><strong>Date Completed</strong></p>
</td>
<td colspan="2" width="186.79px">
<p><strong>&nbsp;Additional Checklist</strong></p>
</td>
<td width="243.996px">
<p><strong>Date Completed</strong></p>
</td>
</tr>
<tr>
<td colspan="2" width="209.384px">
<p>Checklist 1</p>
</td>
<td width="88.7879px">
<p><span>Date&nbsp;&nbsp;&nbsp;</span></p>
</td>
<td colspan="2" width="186.79px">
<p><span>Name </span><span>&nbsp;&nbsp;</span><span>&nbsp;</span></p>
</td>
<td width="243.996px">
<p><span>Date&nbsp;</span></p>
</td>
</tr>
<tr>
<td colspan="2" width="209.384px">
<p>Checklist 2</p>
</td>
<td width="88.7879px">
<p><span>Date&nbsp; </span></p>
</td>
<td colspan="2" width="186.79px">
<p><span>Name </span><span>&nbsp;&nbsp;</span><span>&nbsp;&nbsp;</span></p>
</td>
<td width="243.996px">
<p><span>Date&nbsp;&nbsp;&nbsp; </span></p>
</td>
</tr>
<tr>
<td colspan="2" width="209.384px">
<p>Checklist 3</p>
</td>
<td width="88.7879px">
<p><span>Date&nbsp;&nbsp;</span></p>
</td>
<td colspan="2" width="186.79px">
<p><span>Name&nbsp;&nbsp; </span></p>
</td>
<td width="243.996px">
<p><span>Date&nbsp;&nbsp;&nbsp; </span></p>
</td>
</tr>
<tr>
<td width="40px">
<p><strong>4</strong></p>
</td>
<td colspan="5" width="688.958px">
<p><strong>Comment</strong></p>
</td>
</tr>
<tr>
<td colspan="6" width="728.958px">
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td width="40px">
<p><strong>5</strong></p>
</td>
<td colspan="5" width="688.958px">
<p><strong>DECLARATIONS</strong></p>
</td>
</tr>
<tr>
<td colspan="4" width="391.553px">
<p><strong>☐</strong><strong>&nbsp; </strong>I have read the &hellip;.</p>
</td>
<td colspan="2" width="337.405px">
<p><strong>&nbsp;Signature:&nbsp;&nbsp;&nbsp;</strong></p>
<p>&nbsp;</p>
<p><strong>NAME:</strong>&nbsp;</p>
<p><strong>DATE:&nbsp;</strong></p>
</td>
</tr>
<tr>
<td colspan="4" width="391.553px">
<p><strong>☐</strong>&nbsp; I have provided the&hellip;.</p>
</td>
<td colspan="2" width="337.405px">
<p><br /><strong>&nbsp;Signature:&nbsp; </strong></p>
<p>&nbsp;</p>
<p><strong>NAME:</strong> <span><strong>Full name</strong></span></p>
<p><strong>DATE:&nbsp;</strong></p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

  • Verified answer
    v-yujincui-msft Profile Picture
    on 05 Apr 2022 at 08:13:40
    Re: Compose a HTML table but received a blank result

    Hi @Australia ,

     

    Please try to remove all the 'colspan' property, maybe you need to redesign your HTML code.

    vyujincuimsft_0-1649146219148.png

     

    I have made a test with your HTML codes.

    Here is my Flow.

    vyujincuimsft_1-1649146286062.png

    Result Screenshot:

    vyujincuimsft_2-1649146309100.png

    <!DOCTYPE html>
    <html>
    
    <body>
    <table width="0">
    <tbody>
    <tr>
    <td width="40px">
    <p><strong>1</strong></p>
    </td>
    <td>
    <p><strong>Invoice Type</strong></p>
    </td>
    </tr>
    <tr>
    <td>
    <p><strong>☐</strong><strong>&nbsp;&nbsp; </strong><strong>Paid&nbsp; </strong><strong>&rarr;</strong> <strong>Invoice Number(s):&nbsp;&nbsp;&nbsp;</strong></p>
    <p><strong>☐&nbsp; </strong><strong>&nbsp;Unpaid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong>&nbsp;</strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;</strong><strong>&rarr;</strong> <strong>Invoice Number(s):&nbsp;&nbsp;</strong></p>
    </td>
    </tr>
    <tr>
    <td>
    <p><strong>2</strong></p>
    </td>
    <td>
    <p><strong>Invoice Owner</strong></p>
    </td>
    </tr>
    <tr>
    <td>
    <p><span> <strong>&nbsp;&nbsp; </strong>Title&nbsp;</span><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</strong><span>Full Name&nbsp;&nbsp;</span></p>
    <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mobile Number (Mandatory)/ Office Number (Optional)</span>
    <p>&nbsp;</p>
    <p><strong>☐&nbsp;&nbsp; </strong><strong><u>External</u></strong> &nbsp;</p>
    <p><strong><sup>&nbsp; &nbsp;&nbsp;</sup></strong></p>
    <p><strong>☐&nbsp;&nbsp; </strong><strong><u>Internal</u></strong><strong>&nbsp; &nbsp;</strong></p>
    <p><span>&nbsp; &nbsp;</span></p>
    <p>More info check: <span><a href="https://www.abc.com/">Website</a></span>.</p>
    </td>
    </tr>
    <tr>
    <td>
    <p><strong>Invoice Checklist</strong></p>
    </td>
    <td>
    <p><strong>Date Completed</strong></p>
    </td>
    <td>
    <p><strong>&nbsp;Additional Checklist</strong></p>
    </td>
    <td>
    <p><strong>Date Completed</strong></p>
    </td>
    </tr>
    <tr>
    <td>
    <p>Checklist 1</p>
    </td>
    <td>
    <p><span>Date&nbsp;&nbsp;&nbsp;</span></p>
    </td>
    <td>
    <p><span>Name </span><span>&nbsp;&nbsp;</span><span>&nbsp;</span></p>
    </td>
    <td>
    <p><span>Date&nbsp;</span></p>
    </td>
    </tr>
    <tr>
    <td>
    <p>Checklist 2</p>
    </td>
    <td>
    <p><span>Date&nbsp; </span></p>
    </td>
    <td>
    <p><span>Name </span><span>&nbsp;&nbsp;</span><span>&nbsp;&nbsp;</span></p>
    </td>
    <td>
    <p><span>Date&nbsp;&nbsp;&nbsp; </span></p>
    </td>
    </tr>
    <tr>
    <td>
    <p>Checklist 3</p>
    </td>
    <td>
    <p><span>Date&nbsp;&nbsp;</span></p>
    </td>
    <td>
    <p><span>Name&nbsp;&nbsp; </span></p>
    </td>
    <td>
    <p><span>Date&nbsp;&nbsp;&nbsp; </span></p>
    </td>
    </tr>
    <tr>
    <td>
    <p><strong>4</strong></p>
    </td>
    <td>
    <p><strong>Comment</strong></p>
    </td>
    </tr>
    <tr>
    <td>
    <p>&nbsp;</p>
    </td>
    </tr>
    <tr>
    <td>
    <p><strong>5</strong></p>
    </td>
    <td>
    <p><strong>DECLARATIONS</strong></p>
    </td>
    </tr>
    <tr>
    <td>
    <p><strong>☐</strong><strong>&nbsp; </strong>I have read the &hellip;.</p>
    </td>
    <td>
    <p><strong>&nbsp;Signature:&nbsp;&nbsp;&nbsp;</strong></p>
    <p>&nbsp;</p>
    <p><strong>NAME:</strong>&nbsp;</p>
    <p><strong>DATE:&nbsp;</strong></p>
    </td>
    </tr>
    <tr>
    <td>
    <p><strong>☐</strong>&nbsp; I have provided the&hellip;.</p>
    </td>
    <td>
    <p><br /><strong>&nbsp;Signature:&nbsp; </strong></p>
    <p>&nbsp;</p>
    <p><strong>NAME:</strong> <span><strong>Full name</strong></span></p>
    <p><strong>DATE:&nbsp;</strong></p>
    </td>
    </tr>
    </tbody>
    </table>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    
    </body>
    </html>

     

    Best Regards,

    Charlie Choi

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 123

#2
David_MA Profile Picture

David_MA 104 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 90 Super User 2025 Season 1

Overall leaderboard