cancel
Showing results for 
Search instead for 
Did you mean: 

OneNote - Create a page in section with Page title field.

Currently it will only create an untitled page.

If it can add more detail of the page for one note will be better.

Status: New
Comments
natentb
New Member

I am using the following HTML in the flow and getting some weird  fill in the OneNote

 

<html>

<head>

<title>@{triggerBody()?['Subject']}</title>

<meta name="created" content=@{triggerBody()?['DateTimeReceived']} />

</head>

<body>

<p>@{triggerBody()?['From']}</p>

<p> @{triggerBody()?['Body']}</p>

</body>

<html>

 

OneNote Page shown below

 

"\n\n\n 

NATW@mcleodsoftware.com 

\n 

\r\n\r\n\r\n 

Nate, 
\r\nThank you for contacting McLeod Software. 

\r\n 

A McLeod Software representative will be in touch with you soon to review your request. If you have any additional information that may assist our investigation for your request, please reference 1103608 - Drive time V On duty time is incorrect. 

\r\n 

Thank you for your partnership and we look forward to continuing to serve you. Have a great day! 

\r\n 

NTB's McLeod Software Contact Options: 
\r\nBy Phone: (205) 823-5100 
\r\nBy Email: NATW@McLeodSoftware.com 

\r\n 

Tonya Formby - Engagement Manager 
\r\nCurt Whitfield - Director, Customer Care Services 
\r\nChris Moore - Director, Auxiliary Services 
\r\nDale Brownbridge - Director, Operations 
\r\n 

\r\n\r\n\r\n 

\n\n" 

 

 

 

Any Ideas

 
jtprime
New Member

@natentb 

 

Try triggerBody()?['body']?['content'], instead of, triggerBody()?['Body'].

natentb
New Member

@jtprime 

 

That worked thank you!

RyanXExner
Advocate II
<title>Page Title</title>

 

Worked for me, thank you!! 

BlueBlooded
Regular Visitor

When I pasted in the HTML code from @natentb above, I get the following:

BlueBlooded_0-1600797986072.png

That is, the code:

<p> @{triggerBody()?['Body']}</p>

 

Automagically becomes:

BlueBlooded_1-1600798060634.png

 

So, I make jt's edit before pasting the HTML into the Flow. I still get the abundant instances of "\n" that appear to correspond to the line breaks within the HTML code.

 

What am I missing that is creating the \n's?

 

 

BlueBlooded
Regular Visitor

Update to previous: When I use the code above with the template for "Create a page from important email", the body content comes across clean from the email to the OneNote page.

 

However, when I use the same code for "Create a new page in a section" with a manual trigger, I get the \n problem. 

 

Is there a difference in how the Outlook connector brings the body into OneNote?

MPRADEEPSELASTI
Frequent Visitor

Dear All,

 

I have tried above approaches to add title to my OneNote Page in a section, still the page title remains "Untitled Page". Below is my code

 

My Flow: 

MPRADEEPSELASTI_0-1633679392099.png

 

OneNote Page: 

MPRADEEPSELASTI_1-1633679455614.png

 

Kindly help me if i am missing anything.

 

Thanks in advance.

 

Thank you.

danishpowerapps
Advocate I