Forum Discussion
Archiving Modern Pages when approval is enabled
- Jul 28, 2019
The modern page approval uses the old standard Content Approval feature of a library, where it tracks a separate status of Draft/Pending/Approved. I am assuming any change to the page rightly makes a minor version and draft approval status. If you want it visible, you will need to have it approved again. What you might have to consider is making a custom Page approval, that takes the archived bit into account before sending approval.
Or have a separate Flow run every day, get all articles 30 days old and mark the Archived bit, do a major check in then set the content approval status. Or you could rethink the whole archive strategy. I assume that is to ensure it rolls off some views or web parts? Alot of my clients make a "Featured" column, and filter the News web part on a root site to only show where Featured = Yes and only the most recent 5 or whatever. Then there's no need to explicitly declare an archive value.
The modern page approval uses the old standard Content Approval feature of a library, where it tracks a separate status of Draft/Pending/Approved. I am assuming any change to the page rightly makes a minor version and draft approval status. If you want it visible, you will need to have it approved again. What you might have to consider is making a custom Page approval, that takes the archived bit into account before sending approval.
Or have a separate Flow run every day, get all articles 30 days old and mark the Archived bit, do a major check in then set the content approval status. Or you could rethink the whole archive strategy. I assume that is to ensure it rolls off some views or web parts? Alot of my clients make a "Featured" column, and filter the News web part on a root site to only show where Featured = Yes and only the most recent 5 or whatever. Then there's no need to explicitly declare an archive value.
Thanks Doug! I wound up rethinking the whole strategy as you had suggested. I created a Flow that essentially marks the field as Archived, and then re-approves the page on its own without any user intervention.