Open Documentation Menu

Lists and libraries

The following lists and libraries are used:

ecsContracts

Type: Document library

Initial number: 1

Content types: ecsContractContentType

ecsTasks

Type: List

Initial number: 1

Content types: ecsTasksContentType

ecsContractualPartners

Type: List

Content types: ecsContractualPartnerContentType

Automatic generation of new document libraries and lists

A job (health check) is run nightly, generating new document libraries and lists as needed. To create new document libraries and lists, the current document library or list is always used as a template and copied.

First of all, the health check checks:

  • Whether the created service account token is still valid

  • The service account has the necessary permission on SharePoint

When the health check function is fulfilled, the system checks whether new document libraries and lists need to be created.

The following actions are performed:

  • Check whether the current contract document library has exceeded the maximum number of document folders (the limit is 4000).

  • Check whether a contract document library with the new list index exists.

    • Contract document library exists.

      • Transfer of the settings of the previous contract document library.

        • Adding of content types.

        • Completing the index of the columns.

        • Views are removed and taken from the previous contract document library.

        • Title of the contract document library is localized.

    • Contract document library does not exist.

      • Create new contract document library. Previous contract document library is used as a template.

        • Adding of content types.

        • Adding of index of columns.

        • Views are taken from the previous contract document library.

        • Title of the contract document library is localized.

  • After the contract document library is created, a new task list is created or updated according to the same scheme.

  • After creating the task list, the lists defined by the organization are read from the configuration and created or updated according to the same scheme.

    The list title is not taken over or adapted, but corresponds to the list name.

  • After creating all document libraries and lists, the currentListIndex is incremented in the configuration.