Forum Discussion

Ankit007's avatar
Ankit007
Copper Contributor
Sep 17, 2020

One Note issue in creating title and subtile

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
 

No RepliesBe the first to reply

Resources