Here we can see how to use SharePoint Designer to create a custom workflow that declares an in-place record in a document library.
We will go through the following activities:
- Set up the environment.
- Create a workflow to declare an in-place record or a send a document to a records archive.
- Test your workflow.
Setting Up the Environment
- Open your site in browser.
- In the Site Actions menu, click New Site.
- Select the Team Site template, and provide a title.
- Click the Create button.
- In the newly created team site, navigate to the Shared Documents document library.
- Set up versioning on this document library. In the Library tab of the Ribbon, in the Settings group, select the Library Settings button.
- In the General Settings group, click the link to Versioning Settings.
- In the Require Check Out configuration section, select Yes.
- Click OK.
- Add some sample content for this document library. Click the Documents tab in the Ribbon.
- In the New Ribbon group, expand the Upload Document button.
- Select Upload Multiple Documents.
- Open Windows Explorer and navigate to [[Module12LabFiles\Documents]].
- Select all the files in the folder, and drag them into the Upload Multiple Documents dialog.
- Click OK.
Creating a Workflow
- Browse your site
- Navigate to the Shared Documents document library.
- In the Library tab of the Ribbon, in the Settings group, select the Workflow Settings button.
- Click Create a Workflow in SharePoint Designer.
- You may see a warning from Internet Explorer informing you that "A Website Wants to Open Web Content Using This Program on Your Computer". If you see this message, click Allow.
- SharePoint Designer now loads.
- To add a new workflow to your list, enter a name (Declare Record) and description.
- Add the Conditions and Actions as shown here.
- The location to submit the file to as part of this workflow is http://host name/sites/records/_vti_bin/OfficialFile.asmx.
- In the Save group on the Ribbon, click the Check for Errors button. You should get a dialog box informing you that The Workflow Contains No Errors.
11. In the Save group on the Ribbon, click the Publish button.
12. Your workflow is now published.
Test Your Workflow
- Browse to your site.
- Navigate to the Shared Documents document library.
- Select a document within the document library, and click the Edit Properties button within the Documents tab on the Ribbon.
- You are prompted to check the document. Click OK.
- Click the Save button.
- Select your checked-out document, and click the Check In button within the Documents tab on the Ribbon.
- In the Comments box, type Archive, and click OK.
- Click the Workflow tab in the Documents tab.
- In the Start a New Workflow section, click the link to Declare Record.
- Click Start.
- Your document has now been sent to the Record Center, leaving behind a link.
- Repeat steps 6 through 10 with another document, now typing in place in step 7. This document will be marked as an in-place record.