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 lists

A job (health check) is run nightly, generating new lists as needed. Here, the current list is always copied or taken as a template.

First of all, the health check checks:

  • whether the created service token is still valid and

  • the service account has the necessary permission on SharePoint.

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

The following actions are performed:

  • Check whether the current contract list has exceeded the maximum number of items (the limit is 4000).

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

    • Contract list exists.

      • Transfer of the settings of the previous list.

        • Adding of content types.

        • Completing the index of the fields.

        • Views are removed and taken from the previous list.

        • List title is localized.

    • Contract list does not exist.

      • Create new list.

        Previous list is used as a template.

        • Adding of content types.

        • Adding of index of fields.

        • Views are taken from the previous list.

        • List title is localized.

  • After the contract list 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 lists, the currentListIndex is incremented in the configuration.