Skip to main content

Notifications

Community site session details

Community site session details

Session Id : G4sfj8QqV+VDpEt3usrbHo
Power Automate - Building Flows
Answered

Hidden Borders in a OneNote page created by Power Automate

Like (0) ShareShare
ReportReport
Posted on 11 Aug 2021 13:48:21 by

Hi,

 

I have a simple flow which creates a OneNote page after a Sharepoint item is created. The content of the page is a complex table, therefore, I wanted to avoid having to create it from scratch and instead I opted to use the "Get page content" action to copy the empty table from a template page named "TEST".

 

Tom_Szal_1-1628689236575.png

 

The flow finishes successfully and although the newly created page has the exact same layout and text formatting, the tables are hidden as seen below:

 

Template:

Tom_Szal_2-1628689516810.png

Page created by the flow:

Tom_Szal_3-1628689575245.png

 

Although a simple flow itself, it is a part of a multilayer automation effort and I'm pretty much stuck at this point 😕 Please help!

 

Thanks,

Tom

  • SIneichen Profile Picture
    20 on 03 Aug 2023 at 12:15:12
    Re: Hidden Borders in a OneNote page created by Power Automate

    Just remove 

    <table style="border:1px solid;border-collapse:collapse">

    and put in <table border="1">.

    This works for me.

  • LJ01 Profile Picture
    4 on 12 Dec 2021 at 07:43:42
    Re: Hidden Borders in a OneNote page created by Power Automate

    I've the same problem table borders as Tom. I understand the solution, but how do I implement it in my power automate flow?

    Can you give an explanation?

     

    Thanks in advance,

    LJ

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 12 Aug 2021 at 08:19:47
    Re: Hidden Borders in a OneNote page created by Power Automate

    Hi @Anonymous ,

     

    It seems that the html code in the output of 'get page content' has changed.

     

    This is my html code before:

    <table border="1">
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    <tr>
    <td></td> <td>row 2, cell 2</td> </tr> </table>

    This is the 'get page content' output :

     

    <html lang="en-US">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body data-absolute-enabled="true" style="font-family:Calibri;font-size:11pt">
    <div data-id="_default" style="position:absolute;left:48px;top:120px;width:624px">
    <table style="border:1px solid;border-collapse:collapse">
    <tr>
    <td style="border:1px solid">row 1, cell 1</td>
    <td style="border:1px solid">row 1, cell 2</td>
    </tr>
    <tr>
    <td style="border:1px solid">row 2, cell 1</td>
    <td style="border:1px solid">row 2, cell 2</td>
    </tr>
    </table>
    </div>
    <div style="position:absolute;left:1375px;top:82px;width:624px">
    <br />
    </div>
    </body>
    </html>

     

     

    You could change  style="border:1px solid;border-collapse:collapse" to border="1".

    vxiaochenmsft_0-1628756412862.png

    vxiaochenmsft_1-1628756428062.png

     

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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 87

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard