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 / Hidden Borders in a On...
Power Automate
Answered

Hidden Borders in a OneNote page created by Power Automate

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    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.

  • LJ01 Profile Picture
    4 on at

    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

  • SIneichen Profile Picture
    22 on at

    Just remove 

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

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

    This works for me.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard