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 / Trying to automate the...
Power Automate
Unanswered

Trying to automate the archiving of older OneNote pages into an "Archive" section

(1) ShareShare
ReportReport
Posted on by 3
I'm new to Flow or Power Automate (whatever this platform is called) but stumbled across it when trying to get Copilot to help me archive OneNote pages. 
 
It explained that Copilot itself can't do anything useful, like send emails or move OneNote pages, but said I could create a Flow to move the pages older than 30 days between sections in OneNote.
 
When I started following its instsructions using Flow, I found that it was just plain wrong and the steps didn't match up to options available. 
 
Then it said that I'd have to create a flow that finds OneNote pages in Section A, older than 30 days, and create a new page in Section B, copy the content from Page X, Section A, into Page Y, Section B, and then delete Page X. 
 
This sounds so ridiculously convoluted, so I have to assume there's an easier way to do this, but I'm not finding it. 
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    Refer the below flow which moves the onenote page to archive section based on how much it is old
     
    First of all i have two section here - Daily Task and Archived task as shown below
     
    So objective here would be to move pages from Daily task to Archived task based on pages which would be 30 days old.
     
     
    Now let's see how to do with flow
     
    1. Use get pages in section action to get all pages details in a specific section
     
    2. The output of this would be collection of page details present in given section, so next use apply to each loop for same 
     
    Inside the loop follow below steps
     
    2.1 - use condition action which checks whether page is 30 days old or not using date time manipulation using functions as shown below
    Expression used: 
    div(sub(ticks(formatDateTime(utcNow(),'yyy-MM-dd')),ticks(items('Apply_to_each')?['createdTime'])),864000000000)
     
     
    2.2 if the condition is true, then we need the flow to move the page to archive section, but currently there is no direct action to do so, we need to try the follwoing way , - create same page in archive section, delete the same page from original section - simmilar to copy paste.
     
    Under Yes branch of condition - follow this 
    2.2.1 - use Get page content to get page content
     
    2.2.2 - use the create page in section action to create page in Archive section like below
     
    2.2.3 Now page has been created in archive section, now same page can be deleted from original section, i.e in this case from Daily Task like below
     
     
     
    So this way you can create a flow which helps to automate this task. One thing to note here is i have used manual trigger , but in your case if the flow is designed to run in scheduled manner- you can choose recurrance mode of trigger as well.
     
    Hope this helps !
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

     

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