web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Printing from OneNote

(0) ShareShare
ReportReport
Posted on by

I would like to print out the same page from each of my students class notebook ie Feedback Page. Is there a way that Power Automate could support with this?  What I want to do is select a particular page for each pupil in one go and print them or export them? I don't want to be doing it individually as there are 100 pupils.

Categories:
  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    If your printer is supported by the existing cloud printing connectors I can not tell😉

    But you also can create files from the page contents in your onedrive and batch print them from your local computer.

     

    To get the page contents you may use a flow like this:

    Chriddle_4-1702984115232.png

     

    First Get the notebooks and filter them for names according to your naming convention.

    E.g. if you ask you students to call the notebook 'mathematics <students name>', you filter for 'mathematics'.

     

    Then, in an Apply to each, loop over these notebooks

    @{body('Filter_array')}

     

    Chriddle_5-1702984201131.png

     

    Here you need the notebook section that contains the page.

    Use Get sections in notebook with key

    @items('Apply_to_each')?['Key'])

    and filter them for the section name you aggreed on with your students ('homework' in my flow)

     

    Next step is getting the page identifier with Get pages for a specific section.

    Notebook key is again

    @items('Apply_to_each')?['Key'])

    Notebook section is the expression

     

    first(body('Filter_array_2'))['pagesUrl']

     

    and filter these pages for an agreed page title:

    @item()['title'] is equal to <the title> ('November 2023' in my flow) 

     

    Now the page is identified and you can get the page content:

    Notebook key is again

    @items('Apply_to_each')?['Key']

    Notebook section is again

     

    first(body('Filter_array_2'))['pagesUrl']

     

    Page Id is

     

    first(body('Filter_array_3'))['id']

     

     

    This page content is HTML.

    You might want to convert it to text or maybe use a browser addon to (batch) print the HTMLs directy.

     

    But before that, of course you have to save these page contents to files (or one big file).

    I think my flow is already big enough, so I skipped this here 🙂

     

    Please note: whenever a “Filter array” returns an empty array (because there is no such section or page), the loop iteration fails and of course does not output any page content.

    So you either need to create some checks in the flow and handle them accordingly or check the flow run carefully.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard