Table of Contents

Digitaal Archief Vlaanderen Vlaanderen Configuration

Before documents can be archived to DAV the steps below should be done.

Filling in the DAV Profile

To use DAV for archiving in the framework we first need to fill in the provided DAV profile. The username, password, client ID and client secret are required to fill in to make a connection to DAV.

DAV Profile

More information about the required fields can be found in template documentation of the interface.

Filling in the SharePoint Building Blocks Profile

Make sure the SharePoint Building Blocks profile is filled in when archiving the documents from SharePoint to DAV.

Ensuring the Page to Configure the Archive Settings

Before we can configure the archive settings we ensure the page with ADM's to configure those settings. The page can be ensured using the 'Ensure Modern Page' building block. The page can also be configured manually. This page is usually ensured on a dashboard where only the archivist has access to.

Config Page Example

In this example we have set up a quick links navigation, but this is optional and depends on the current dashboard. The following views should be configured on the page using the 'Ensure ADM' building block or by configuring the page manually, the order / place of the web parts doesn't really matter:

  • Mappings: Object DCS.Archive.ArchiveMapping, view All DAV Archive Mappings
  • Lifecycle Dropdown: Object DCS.Archive.ArchiveMapping, view Lifecycle Filter
  • Default Lifecycle - DAV Dossier Property Links: Object DCS.Archive.LifecyclePropertyLink, view Default DAV Lifecycle Property Links
  • Default Document Metadata Links: Object DCS.Archive.MetadataLink, view Default Metadata Links

Configuring Archive Settings

Mappings

To configure the archive mappings for DAV we should use the Mappings overview.

An archive mapping is set on a lifecycle, list and DAV series. Take the following configuration as an example:

  • Lifecycle: Social File
  • List: Reports
  • DAV Series: Social Files

This means all documents from the library Reports of the cases of the lifecycle Social File will be archived to a DAV dossier of the series Social Files. If the list was left empty, all document libraries of the case are archived.

Mappings Config

Field Value Filters

By default all documents of the document libraries are archived. If we want to archive documents with specific metadata, the field values on an archive mapping can be configured. Those can be configured via the filter icon in an archive mapping row.

Take the following configuration as an example:

  • Field: Document Type
    • Values: Request, Report, Worksheet
  • Field: Status
    • Values: Approved

Field Values Config

All documents containing one of the Document Type values and the status Approved will be archived.

For each archive mapping of a DAV series, a dossier will be created for the case. To create a dossier with the needed information the dossier fields and lifecycle fields should be linked. Those links can be set using the link icon of an archive mapping or by setting the default values. When opening the view the required fields to create a dossier are shown in red.

Those links can be set on an archive mapping or default for a lifecycle. If the lifecycle property link is set default for a lifecycle it is applied to all archive mappings which have no link. The default lifecycle property links can be overwritten or removed, they are shown in gray. Fields from extensions of the series of the archive mapping are shown

The default lifecycle properties can be set with the Default Lifecycle - DAV Dossier Property Links overview. A lifecycle must be set using the dropdown on the page.

Warning

If one of the required field is not linked the dossier cannot be created and the documents will not be archived. Make sure the case properties for the required fields are always set.

Lifecycle Property Links Config

As you can see in the screenshot above, all required fields are linked with a lifecycle property. If a required field is not linked a warning sign is shown in the row.

Document metadata can be set on a document in DAV. To send the metadata of the source document of SharePoint, we must set the links between the source and destination fields. The metadata links can be set on every archive mapping or as a default for all archive mappings. Click on the document icon to open the metadata links for the archive mapping.

The default metadata links can be overwritten or removed, they are shown in gray. The destination archive name must match the JSON object external name, consult the DAV interface configuration documentation for more information.

The default document metadata links can be set with the Default Document Metadata Links overview.

Document Metadata Links Config

Configuring the Archive Trigger

The last step to set up the archiving of documents to DAV is configuring the trigger of the archive method. The method Archive Documents Of Case To DAV of the object DAV.Document should be used, this method can be used in case management or as an item function on a view for example. Make sure the method is added as a 'DCS method' when using this method in case management.

Fill in the following fields:

  • Case ID: the ID of the case to archive. This will be automatically filled when using the method in case management.
  • Re-archive Documents: whether all documents need to be archived again. This will ignore the succeeded documents from the archive logs. This option can be used when the documents were removed from DAV and we want to re-archive the documents again.
  • Re-archive For Existing Dossier: use the existing dossier in DAV to archive the documents to, by default a new dossier in DAV will be created for the case. This option can be used when errors occurred on a case and you don't want to create a new dossier for the new documents in DAV. For example when a social file has been archived 5 years ago and it was opened again recently. When archiving the case of the social file again a new dossier in DAV will be created by default. We could enable this option to use the existing dossier in DAV.
  • Url: the url of the SharePoint site containing the documents. If left empty the url from the case is used.
  • Folder: the name of the folder containing the documents to archive. If left empty all documents from the document library will be archived.

In the screenshot below we have placed the method as an action on an archive state (transition).

Archive State Actions

(Optional) Add Status Fields to the SharePoint Library

If we want to have an archive indicator on the documents in SharePoint as metadata we can be add extra fields on the library. This step is optional as the archiving can also be consulted via the archive logs or DAV, if those fields don't exist the document metadata will not be updated.

The text fields with the following internal names can be added on the library using the 'Ensure Text Field' building block:

  • DAVDocumentID: the ID of the document in DAV.
  • DAVDossierID: the ID of the dossier in DAV.
  • DAVStatus: the status of the dossier in DAV, 'Success' / 'Error: {message}'.