One Note issue in creating title and subtile

%3CLINGO-SUB%20id%3D%22lingo-sub-1677713%22%20slang%3D%22en-US%22%3EOne%20Note%20issue%20in%20creating%20title%20and%20subtile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1677713%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20am%20creating%20a%20notebook%20from%20power%20shell%20command%20and%20is%20creating%20section%20and%20pages%20from%20the%20power%20shell%20code%20using%20simple%20HTML.%20However%2C%20when%20i%20am%20trying%20to%20insert%20subtitle%20I%20am%20not%20getting%20any%20this.%3C%2FP%3E%3CP%3EIn%20manual%20process%20if%20you%20create%20a%20page%2C%20the%20page%20title%20will%20have%20a%20sub%20header%20which%20will%20have%20date%2C%20but%20its%20not%20appearing%20when%20doing%20from%20power%20shell.%20what%20am%20i%20doing%20wrong%2C%20any%20idea%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehere%20is%20the%20code%20%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24DateRel%20%3D%20%22textordatevalue%22%0A%24OVERVIEW_PAGE_BODY_CONTENT%20%3D%20%22%0A%20%20%20%20%60n%0A%20%20%20%20%60n%0A%20%20%20%20%60n%20%20%3CTITLE%3ERelease%20Notes%3C%2FTITLE%3E%0A%20%20%20%20%60n%20%3CDIV%3E%3CP%3E%24DateRel%3C%2FP%3E%3C%2FDIV%3E%0A%20%20%20%20%60n%0A%20%20%20%20%60n%0A%20%20%20%20%60n%20%3CP%3E%24DateRel%3C%2FP%3E%0A%20%20%20%20%60n%3CP%3EThis%20is%20the%20latest%20release%20of%20%3C!--build_pipeline_name--%3E.%20The%20release%20addresses%20the%20issues%20mentioned%20in%20%3C!--release_overview_link--%3E%20page.%3C%2FP%3E%0A%20%20%20%20%60n%0A%20%20%20%20%60n%0A%20%20%20%20%60n%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eand%20my%20output%20in%20one%20note%20file%20what%20is%20created%20is%20like%20this%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3ERelease%20Notes%0A%0A%0Atextordatevalue%0AThis%20is%20the%20latest%20release%20of%20.%20The%20release%20addresses%20the%20issues%20mentioned%20in%20page.%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eif%20you%20see%20i%20am%20getting%20textordatevalue%20in%20body%20but%20not%20in%20my%20header.%20i%20want%20it%20below%20release%20notes%20as%20you%20will%20have%20when%20you%20create%20a%20one%20note%20file%20manually.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi, I am creating a notebook from power shell command and is creating section and pages from the power shell code using simple HTML. However, when i am trying to insert subtitle I am not getting any this.

In manual process if you create a page, the page title will have a sub header which will have date, but its not appearing when doing from power shell. what am i doing wrong, any idea?

 

here is the code :

$DateRel = "textordatevalue"
$OVERVIEW_PAGE_BODY_CONTENT = "<!DOCTYPE html>
    `n<html>
    `n<head>
    `n  <title>Release Notes</title>
    `n <div><p>$DateRel</p></div>
    `n</head>
    `n<body>
    `n <p>$DateRel</p>
    `n<p>This is the latest release of <!--build_pipeline_name-->. The release addresses the issues mentioned in <!--release_overview_link--> page.</p>
    `n</body>
    `n</html>
    `n"

and my output in one note file what is created is like this:

Release Notes


textordatevalue
This is the latest release of . The release addresses the issues mentioned in page. 

if you see i am getting textordatevalue in body but not in my header. i want it below release notes as you will have when you create a one note file manually.

 

Thanks
 

0 Replies