Nov 15 2022 06:39 PM
I have a need to make a change to document retention in SharePoint. I need to deprecate use of an existing retention label with retention type "EventAgeInDays" and have users begin labeling content based on a retention type of "TaggedAgeinDays" instead. The shortcut appears to be simply modifying the existing label in the FilePlan. It appears to solve for a number of issues like having to retrain the users to pick a new label name. I have tried the change in my development tenant, and I received no errors. I presume the content labeled before the change will continue with the old parameters of the label. Only newly labeled content would get the change. This seems almost too easy. Is there a preferred way to handle such an alteration? Did I just light the fuse on a process that is bound to fail when SharePoint runs the weekly housekeeping?
Nov 28 2022 09:05 AM
SolutionHi @K-dub,
Thanks for the question! Here is a link to the documentation about modifying existing labels: Create retention labels for exceptions - Microsoft Purview (compliance) | Microsoft Learn
"Most settings can't be changed after the label is created and saved, which include:
So, you can change the retention period for a label, but nothing else. If you'd like to change the other settings, the best process is to create a new label and use PowerShell to replace it 1:1 with the old label.
Please let us know if you have other questions.
Thanks!
Erica
Jan 18 2023 06:23 AM
Hey @EricaToelle! I hope everything's well with you! This is relevant to my interests. I'm going to have to show a client how to do do this soon (create the new labels and use PowerShell to replace them 1:1). Do you have any advice on what thread to start pulling to figure out how to do that?
Jan 31 2023 02:33 PM
@Nick Brattoli Consider using the Set-PnPListItem cmdlet with the '-ClearLabel' and/or the '-Label' params to clear or assign a new retention label on an existing list item.
Refer this example: Set-PnPListItem | PnP PowerShell
Hope that helps! Cheers!