Features for management of content expiration are not directly available in SharePoint Online, and as result are not part of Atlas. However, there are some options we can point towards.
Emulate content expiration by hiding older items in web parts
This approach is very easy to achieve on a per-web part basis, and works simply by no longer showing items once they reach a certain age.
The items are not technically "expired" or deleted from the system, but they will no longer be promoted to users in the web parts you modify. Please understand that the items will still be visible if the user browses the containing List or Library via Site Contents, or the items are returned in a web part without the following restrictions applied.
To apply this approach to an In Focus web part is quite straightforward using Query Templates. If we add the following expression in the Query Template box only items where the Date is within the last 80 days will be shown:
That date is one that can be changed by editors, so another option instead of RefinableDate18 (the editable Date field) we could instead use the Created Date (Created) or Modified Date (LastModifiedTime) in the query as so:
Created and Modified dates cannot be directly modified by users, so you may prefer to use those over the editable Date to keep consistency.
If this needs to be repeated for a web part which is re-used across many different pages, you can Export the web part configuration and Import into other pages.
Content expiration using Power Automate
Please first be aware that ClearPeople do not provide any services related to Power Automate so you will need to source this expertise in house or engage a 3rd party supplier. We have a partnership with a 3rd party supplier who can do the build work for these services; please contact your CSM or raise a ticket if you'd like to go this route.
Power Automate can use SharePoint Lists and Libraries as a trigger, so that when certain actions happen, automated tasks can be run. Alternatively these automations could happen on a timer.
To have content expire, you would want to have a Power Automate flow set up which monitors one of the Date fields on the expirable items, and when they reach a certain threshold will perform actions on that item, such as Unpublishing, Deleting or Moving to an archive.
Scheduled Publishing for Pages
Content Expiration is not available out of the box, but Scheduling for pages is available. Read more here:
Schedule a SharePoint page or news post to go live at a specific time - Microsoft
Please sign in to leave a comment.