Athento has an operation or automation that allows documents to be related automatically when the documents share fields with the same value.
First, you must access the configuration of the space where you want to activate the operation and go to the automations tab. From the automation library, look for the ‘op_automatic_relation_v2′ operation and install it.
Once installed, click the pencil button to edit its parameters.
Next, a panel with the operation configuration will open on your screen. The available options are:
- Metadata types: here all the fields whose value must match the fields of the document on which the operation is executed in order to generate the relationship are indicated.
- Relate document with current one: allows relating the document found with the document on which the operation is executed.
- Copy document fields: allows copying all the field values from the document found to the document on which the operation is executed.
- Days ago: allows searching for documents to relate whose with a creation date from X days ago.
- Form: to search among the documents of a specific form.
- Create a document if not found: if the operation does not find a document with the indicated fields, it will create a new document to relate it to the document on which we create the operation.
- Search relation by title: instead of searching by fields, it is done by title.
To execute the operation, go into the document on which you want to execute it and in the upper right menu, click the option marked in the image below and look for the operation in the drop-down menu.