Forum Discussion
Archiving Modern Pages when approval is enabled
Hi Team,
We currently have the OOTB Flow Approval Process enabled for our modern page sites. Some of our pages are no longer valid after 30 days, so I'm looking to change a page attribute to Archived = Yes. When this happens though, it changes the page back to a draft, and the page must be published again. Is there a better way of doing this?
Thanks so much!
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.
2 Replies
- Doug AllenIron Contributor
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.
- Alan0618Copper Contributor
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.