Before starting
The following help sheet will show you how to import or edit departments in bulk.
Find the department's import module
Go to the cogwheel, then click on "Import". Then choose the "Departments" part:
Create departments in bulk
For creating new departments, a CSV file must be put together with columns for the departments set out according to the tree structure (identified with the "levels") and a column with the codes of these establishments.
Here is an example:
You can now import the file.
Editing departments in bulk
Before editing the departments, you must find those which have already been configured. To do this, add the following text to your Lucca database URL (after ilucca.net): /api/v3/departments?fields=id,name,code,level,isactive
Here is an example of the result (obtained thanks to a json viewer installed on the internet browser):
You can then copy all the data to an Excel spreadsheet (using a JSON-TO-CSV program that is easy to find online). Here is an example of the result:
Here are the explanations column by column:
- A: It is very important, because it is used to recognize the department concerned
- B: It indicates the name of the departments
- C: It indicates the department code
- D: It identifies the level of the department
- E: It specifies whether the department is active (true) or if it is to be archived (false)
You can now import the file.