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 / Create a OneNote page ...
Power Automate
Unanswered

Create a OneNote page for upcoming event Using a template

(0) ShareShare
ReportReport
Posted on by

I have a template in One Note that I use to take notes for meetings. (see below) I would like to create a flow that creates a new page using this template every time I have an outlook scheduled event. I know how to create a flow that creates a OneNote page for my upcoming event, but I would really like that page to be my template and not a blank page. 

Any ideas, suggestions, or recommendations? 

 

Thank you 

Charlyusa1_0-1672783543100.png

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    I am not sure if you can access the My Templates from your OneNote? But as a workaround you could use the content of another page and create your new page with that content.

     

    Below is an example

    In this example I reused the page content and also replace the title with the value from a string variable called PageTitle.

     

    replace(outputs('Get_page_content')?['body'], split(split(outputs('Get_page_content')?['body'], '<title>')[1], '</title>')[0], variables('PageTitle'))

     

    reuseotherpageastemplate.png

  • Community Power Platform Member Profile Picture
    on at

    Hey Thank you for you help. I think I'm missing something Could you take a look at my flow? The page gets created but I end up with the formula on that page see the picture below. any idea what I'm doing wrong? Thank you for your help

    Charlyusa1_0-1672856464280.png

    Charlyusa1_1-1672856572003.png

     

     

  • dunkindude Profile Picture
    9 on at

    Were you able to resolve this?  Fellow Key2Success user here trying to solve the exact same problem.

     

    Thanks!

  • Community Power Platform Member Profile Picture
    on at

    yes I have see my setup below The formula Format date is: 

    formatDateTime(parseDateTime(split(triggerBody()?['Start'], '+')[0]), 'MM/dd', 'en-US')
    and it's so I have the date of the meeting in front of the meeting' name
    Then the formula that goes in the replace is : 
    replace(outputs('Get_page_content')?['body'], split(split(outputs('Get_page_content')?['body'], '<title>')[1], '</title>')[0], variables('PageTitle'))
     

     

    Charlyusa1_0-1673032067047.png

    This is what the finish result looks like

    I have the title with the date and the subject of the meeting, then at the bottom I have the link to the actual Outlook invite, and below that I have the body of the Outlook invite.

    Charlyusa1_1-1673032305621.png

     

    I hope this help

     

  • dunkindude Profile Picture
    9 on at

    Thank you so much for the detail and your steps. - I'm getting a strange error on the last step but I will dig and work it out, I'm sure its somewhere in my transposing.  Thanks again sir  

     

    InvalidTemplate. Unable to process template language expressions in action 'Create_page_in_a_section' inputs at line '0' and column '0': 'String cannot be of zero length. Parameter name: oldValue'.

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    Apologies for the delayed reply. The PageTitle string variable just contains a new text title. The expression should not be used there 🙂

     

    newpagetitle.PNG

  • ecupp Profile Picture
    2 on at

    I am getting the same error. Did you happen to get passed this error?

     

    Thanks!

  • dunkindude Profile Picture
    9 on at

    Hi ecupp,

    The exact solution escapes memory as I did multiple edits tweaking this and that.  This flow works for the purpose of applying the K2S Meeting template and dropping it into a "Meeting" section with date and subject as title and OWA URL at bottom with space for notes in between.  I used the "When an upcoming meeting is starting soon (v3)" and a Look-Ahead Time of 60 minutes.

    dunkindude_0-1681326169071.png

    dunkindude_2-1681326210849.png

    fx in Expression field= replace(outputs('Get_page_content')?['body'], split(split(outputs('Get_page_content')?['body'], '<title>')[1], '</title>')[0], variables('PageTitle'))

     

    Hope that helps-

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard