SOLVED

Expiration date for News pages

%3CLINGO-SUB%20id%3D%22lingo-sub-281424%22%20slang%3D%22en-US%22%3EExpiration%20date%20for%20News%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281424%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20modern%20sites%2C%20is%20there%20a%20way%20out%20of%20the%20box%20to%20set%20an%20expiration%20date%20on%20a%20News%20page%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20do%20I%20need%20to%20deploy%20on%20each%20site%20an%20expiration%20date%20property%2C%20and%20use%20the%20property%20filter%20on%20the%20News%20Web%20Part%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-281424%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ENews%20web%20part%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-386839%22%20slang%3D%22en-US%22%3ERe%3A%20Expiration%20date%20for%20News%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-386839%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F29417%22%20target%3D%22_blank%22%3E%40Christophe%20Humbert%3C%2FA%3Egreat%20post!%26nbsp%3B%20This%20approach%20helped%20me%20resolve%20the%20issues%20I%20was%20trying%20to%20address.%26nbsp%3B%20While%20there%20isn't%20an%20out%20of%20the%20box%20option%20this%20gave%20my%20direction%20to%20a%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-283126%22%20slang%3D%22en-US%22%3ERe%3A%20Expiration%20date%20for%20News%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-283126%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%2C%20the%20promoted%20status%20is%20setting%20the%20page%20as%20%22News%22%20and%20add%20it%20into%20the%20webpart%2C%20so%20it%20could%20be%20a%20solution.%3C%2FP%3E%0A%3CP%3EFab%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-283107%22%20slang%3D%22en-US%22%3ERe%3A%20Expiration%20date%20for%20News%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-283107%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Fabrice.%20Have%20you%20tried%20using%20Flow%20to%20update%20the%20PromoteStatus%20column%3F%20I%20was%20going%20to%20look%20into%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-282755%22%20slang%3D%22en-US%22%3ERe%3A%20Expiration%20date%20for%20News%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-282755%22%20slang%3D%22en-US%22%3E%3CP%3ENothing%20is%20available%20built-in%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20can%20look%20in%202%20directions%20for%20that%2C%20but%20based%20on%26nbsp%3Ba%20custom%20field%20to%20add%20into%20the%20%22post%22%20content%20type%20placed%20into%20your%20modern%20library.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B-%20Develop%20a%20PowerShell%20script%20to%20get%20all%20the%20pages%20and%20check%20the%20end%20publication%20date%20and%20delete%20or%20change%20the%20publication%20date%20(remove%201%20year%20to%20place%20it%20below)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B-%20Try%20a%20Flow%20dev%20to%20manage%20the%20same%20case%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20is%20now%20a%20flow%20for%20the%20approval%20process%20into%20the%20modern%20page%2C%20that%20can%20give%20you%20the%20direction%20to%20apply%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFab%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-281461%22%20slang%3D%22en-US%22%3ERe%3A%20Expiration%20date%20for%20News%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-281461%22%20slang%3D%22en-US%22%3Enothing%20built%20in%20yet.%20That%E2%80%99s%20on%20the%20list%20they%20want%20to%20add%20to%20news%20thou.%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

In modern sites, is there a way out of the box to set an expiration date on a News page?

 

Or do I need to deploy on each site an expiration date property, and use the property filter on the News Web Part?

 

 

 

 

 

5 Replies
Highlighted
nothing built in yet. That’s on the list they want to add to news thou.
Highlighted
Solution

Nothing is available built-in

You can look in 2 directions for that, but based on a custom field to add into the "post" content type placed into your modern library.

 - Develop a PowerShell script to get all the pages and check the end publication date and delete or change the publication date (remove 1 year to place it below)

 - Try a Flow dev to manage the same case

 

There is now a flow for the approval process into the modern page, that can give you the direction to apply

 

Fab

Highlighted

Thanks Fabrice. Have you tried using Flow to update the PromoteStatus column? I was going to look into this.

Highlighted

You can, the promoted status is setting the page as "News" and add it into the webpart, so it could be a solution.

Fab

Highlighted

@Christophe Humbertgreat post!  This approach helped me resolve the issues I was trying to address.  While there isn't an out of the box option this gave my direction to a solution.