Automated Management of iQ.Suite Clerk Database Documents
Using iQ.Suite Clerk, every user can create, manage and delete their own deputy configuration. Activation and deactivation is also carried out by the users themselves; although deactivation and/or deletion in particular is often performed only sporadically. Most users actually create an additional document for every absence. This means that the database keeps on growing, and the performance of the Clerk module becomes increasingly worse, as the validity of every active document has to be checked.
It is therefore vital to keep the number of documents within reasonable limits and to deactivate those documents which have expired. This can really only be resolved in an automated way. A new function in iQ.Suite Clerk 11 and an iQ.Suite Action Database Job can assist you with this.
Controlling the number of documents
With the release of iQ.Suite Version 11, you can now restrict the number of documents which a user may store. This prevents an "uncontrolled growth" of documents.
- Navigate to the Clerk - "Abwesenheitsliste nach Benutzer" [Absence list by user] view.
- Click on "Konfiguration“ [Configuration] (on the right corner of the screen).

- The restriction is individually adjusted for every forwarding (standard), forwarding (advanced) and redirection.

Deactivating old Clerk documents
For this, an iQ.Suite Action Database Job will be configured which will regularly search for Clerk documents which are configured for a transpired period of absence.
The formula rule for document selection is the crucial element of this job:
Create a new database formula rule:
Global - Datenbank-Regeln - Neu - Formelregel [Global - Database Rules - New - Formula Rule]
Name: "Check old Clerk Docs"
Formula:
_days:= 0;
@If(DEL_EndDate<@Adjust(
@Now;0;0;_days;0;0;0);
@True;
@False)
This rule checks whether the documents in the iQ.Suite Clerk DB have expired. The "_days" variable determines how long the documents must be expired before the entire rule is applied. The preset entry is 0 days, which means that the rule applies to all documents which precede the day of checking.
If "3" is entered, the rule applies to all documents which qualify 3 days before the day of checking.

The documents which fall under this rule are now to be deactivated:
Create a new Action DB Job:
Global - Datenbank Jobs - Neu - Action DB Job [Global - Database Jobs - New - Action DB Job]
- Basics tab:
- Activate
- Configure schedule
- Select the Clerk Database (g_del.nsf)
- Selected documents
- Dependence on positive selection rules: Select "Check old Clerk Docs"

- Operations tab:
- Execution mode: Notes formula
- Notes formula: FIELD DEL_JobState := "0" @Success
