cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cf_amart
Frequent Visitor

Automate to create a table in OneNote

I am wanting a table to be created in OneNote from the data entered in my SharePoint site. I have my HTML set up, but when the flow runs, the table is not correct in OneNote.  

My flow looks like this:

flow1.jpg

Here is my Page Content:

 

 

<table width="100%">
   <tr>
       <td><b>Name: </b></td>
       <td>@{triggerOutputs()?['body/Client_x0020_Name']}  @{triggerOutputs()?['body/Date']} </td>
   </tr>
</table>
<br>
<strong>Notes:</strong>
<table style="padding: 5; border: 3px double solid; border-collapse: collapse; width: 100%;">
   <tr>
       <b>
           <th>Subjective</th>
           <th>Objective</th>
           <th>Assessment</th>
           <th>Plan</th>
           <th>Diagram</th>
       </b>
   </tr>
   <tr>
       <td>@{triggerOutputs()?['body/Subjective']}</td>
       <td>@{triggerOutputs()?['body/Objective']}</td>
       <td>@{triggerOutputs()?['body/Assessment']}</td>
       <td>@{triggerOutputs()?['body/Plan']}</td>
       <td><img src="https://www.myimagelinkhere.com" alt="diagram"/></td>
   </tr>
</table>

 

 

 This is what the table output looks like in OneNote:

table1.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @cf_amart :

Firstly, let me explain why you encountered this problem.

The key is that the carriage return you typed is also recognized as the content in the note

Secondly, simply eliminate the carriage return in the HTML text to solve the problem. Ive made a test for your reference:

v-bofeng-msft_0-1607652915713.png

 

Reference Expression:

uriComponentToString(replace(uriComponent(outputs('Compose')), '%0A', ''))

The Result:

v-bofeng-msft_1-1607652915713.png

 

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @cf_amart :

Firstly, let me explain why you encountered this problem.

The key is that the carriage return you typed is also recognized as the content in the note

Secondly, simply eliminate the carriage return in the HTML text to solve the problem. Ive made a test for your reference:

v-bofeng-msft_0-1607652915713.png

 

Reference Expression:

uriComponentToString(replace(uriComponent(outputs('Compose')), '%0A', ''))

The Result:

v-bofeng-msft_1-1607652915713.png

 

Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,240)