Forum Discussion

Alan0618's avatar
Alan0618
Copper Contributor
Jul 25, 2019
Solved

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 Archive...
  • Doug Allen's avatar
    Jul 28, 2019

    Alan0618,

     

    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.  

Resources