How to declare SharePoint documents as a record

This article will show how to declare SharePoint document as a record with help of Declare action from Plumsail Actions package.

Site settings

To be able to declare SharePoint document as a record you need to enable the feature on the site level.

Go to Site settings - Site collection features and enable “In place records management” feature

../../../_images/in-place-records-management.webp

Then if you go to the site settings again you’ll see option “Record Declaration Settings”,

These are the default settings. You can change it if it’s needed

../../../_images/record-declaration-settings.webp

Example

Let’s says we have a document library with business plans. When a user upload the plan the status is set to “Under review”. I want to declare the document as a record after changing the status to “Approved”.

../../../_images/business-plans-lib.webp

I made the flow and it’s started automatically when an item’s status in the Business Plans library changed to “Approved” I added ‘if’ condition to declare the item only if the status is changed to approved. It won’t declare the item if some other changes are made or if new item is created.

../../../_images/declare-test-flow.webp

Adding the Plumsail action for the first time, you’ll be asked for a Connection name and Access Key.

New connection

You can type any name for the connection. For example, “Plumsail Actions”. Next create an API key on your Plumsail account page, copy, and paste it to the “Access Key” field.

Now, let’s change the status of the first document to “Approved’.

../../../_images/business-plans-doc-approved.webp

And after the flow we can see that the document now has this symbol

../../../_images/declared-document.webp

If I try to delete it I see this notification

../../../_images/notification.webp

Note

You can also Undeclare document using Undeclare action

Conclusion

Now you should have an idea how to use Declare action from Plumsail Actions package. If you haven’t used it yet, registering an account would be the first step. It is quite easy to get started.