This post covers how to create a Document Approval workflow that includes Record Declaration in SharePoint 2013 Online. This will add the feature of automatically locking documents that are approved.
For this, you’ll need a few things:
- O365 Enterprise E3 or E5
- SharePoint Designer 2010. Workflows with Record Declaration are not available in SharePoint Designer 2013 (yet). Get the 32-bit version free here.
- Basic knowledge of how to create SharePoint workflows, libraries, and views
To start, let’s create a new Document List. Got to Site Settings -> Add an App:
Then Select Document Library:
Give the Document Library a name and click Create:
Open the Document Library from Site Contents:
To add some columns to the library, click Library -> Library Settings:
Scroll down and add columns using the “Create column” and/or “Add from existing site columns” options. I’m going to add Number (single line of text), Doc Type (Choice, with the choices being Spec, Comm, and Qual), and Document Status (Choice, with choices Draft, Routing, and Approved):
Let’s also modify the “All Documents” view to remove “Modified” and “Modified By”. The view then looks like (with a couple file and metadata entered manually):
Normally the Word documents are always editable (depending on permissions), but let’s say we want to automatically make the current version the “record” version when status is set to “Approved.” We’ll do this using a workflow.
We first need to activate Record Declaration. That is done under Site Settings -> Site Collection Features (make sure you’re in Site Collection Administration, i.e. you may have to click “Go to top level site settings” if you don’t see the “Site Collection Features” option:
Scroll down to find “In Place Records Management” and click Activate:
Under Site Settings, you can click “Record declaration settings” to see what options are available for this functionality. We’ll use the default options of “Block Edit and Delete” for record documents.
Going back to your Document list, you may want to create an option to declare a document a record manually, which is not the default. To change that you need to go to Library -> Library Settings -> Record declaration settings and make the change. I’m going have all declarations done automatically via workflow so am not going to change this setting.
Next step is to create the workflow, which as mentioned above must be done in SharePoint Designer 2010. So, assuming you have SharePoint Designer installed and connected to your site, go to Lists and Libraries, and then open you Documents list:
Then select New and the Platform Type “SharePoint 2010 Workflow” to initiate a new workflow:
Give it a name and click OK. I’m using the name “Declare Record on Approval:” Click on the name and configure the Start Options. I’ve enabled all:
Next select”Edit workflow”and create a workflow that looks like this:
Select “Publish” to publish the workflow and go back to your site. Change the status of a record to “Approved” and refresh the page and you’ll see the workflow in progress:
Wait a bit more and refresh again and you’ll see the workflow completed and document declared a record, which means it is not editable and cannot be deleted.
I also recommend removing the workflow status column from the view to give a cleaner user experience.
That’s it! Any questions and comments please leave ’em below.