Skip to content

A repository with an SPFx solution demonstrating how to view and manage retention settings.

Notifications You must be signed in to change notification settings

martinlingstuyl/blimped_spfx_retention_controls

Repository files navigation

blimped-spfx-retention-controls

Summary

Using this solution you can:

  • view retention information from files and folders labeled with a retention label.
  • toggle record lock status
  • clear the retention label from a file or folder.
  • bulk toggle record status for selected items or the entire library.
  • bulk clear labels for selected items or the entire library.

This solution comes in handy if you choose to not publish any retention label, for example for purposes of automatic labelling. In such a scenario, the retention label dropdown would not be visible, and thus it would be impossible to clear the label of an item.

Opening the Retention Controls dialog:

Opening the retention controls screen

Viewing retention information for a single selected item:

The retention controls screen

Viewing retention information for multiple selected items or the entire library:

Retention controls for the entire library

Taking action on a single item, all selected items or the entire library:

Executing actions

"Take bulk action" encompasses the entire library if no items were selected before opening the retention controls dialog.

Used SharePoint Framework Version

version

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

Publish the SPFx package to your app catalog Ensure the solution is made available across your tenant

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • npm install
    • gulp serve

Include any additional steps as needed.

References

About

A repository with an SPFx solution demonstrating how to view and manage retention settings.

Resources

Stars

Watchers

Forks

Packages

No packages published