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 Automate
Unanswered

GET PAGE CONTENT

(1) ShareShare
ReportReport
Posted on by 7
Is there a way to grab the content of the latest modified page in a OneNote section.  I currently have my flow set up to select the page I want but trying to get my flow to grab the latest modified page on a weekly reoccurring flow. Is this something that's possible without the use of Microsoft Graph?
 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
     
    Yes, you could use a couple of expressions with the ticks, sort and reverse functions for this to double check what the last modified page is. You can use a the lastModifiedTime property for this. 
     
    Below is an example
    In this example I am sorting reverse (descending) and picking the first item. Obviously, you can also just sort (ascending) and pick the last item as well 😂

    1. Use a Select to convert the outputs of a Get Pages for a specific section action. Within the Map field convert the lastModifiedTime to numbers which can be sorted
     
    {
      "lastModifiedTime": @{string(ticks(item()?['lastModifiedTime']))},
      "id": @{item()?['id']},
      "title": @{item()?['title']}
    }



    2. Use the outputs of that select, sort it descending and use the id of the first item in the Get page content action
    first(reverse(sort(body('Select'), 'lastModifiedTime')))['id']
     



     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • Suggested answer
    CU19052134-0 Profile Picture
    7 on at
    Great thank you. Th problem I'm running into now is getting it to an array from object. It's not giving me any options to go in there and switch it. 

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard