-
Print
-
DarkLight
-
PDF
Example of using the import client
1. Preparation
- Download the latest version of the import client compatible with the version of your Constellio environment from the following page "Client d'importation";
- Extract the contents of the downloaded zip file
2. Configuring the Import Client
- Navigate to the " configurations " folder and then open the " config.properties " file in a text editor;
- Edit the values of the parameters " server.port " and " server.host " and enter the information of your Constellio environment;
If your environment is in HTTPS, you must also set the configuration " auth.connectUsingSSL " to true;
For example, for a Constellio environment accessible at https://client.cloud.constellio.com/constellio/ on port 443, the configuration file should be configured as follows:
- Enter the code of the Constellio collection into which the records are to be imported in the " import.collection " parameter
- Other import and export settings can also be changed directly in the configuration file, but it is recommended to enter them directly in the import client (Detailed in sections 4 and 5)
3. Start the import client
- Open the " start-program.bat " file to start the import program;
- Enter your Constellio username and password, then click on "Enter". This is the same login you use to connect to the Constellio web interface;
- Once logged in, a main menu for accessing the two main functions of the program should be displayed.
4. Generate an import template from a directory
- From the main menu, enter " 2 " to navigate to the network share export utility menu;
- Enter " 2 " to navigate to the configuration page. The current configurations will be displayed. If these seem correct, jump directly to step h;
- Enter " 1 " to modify configurations;
- Enter the root path of the network share or directory you want to import into Constellio;
- Enter the code of the administrative unit in which the imported files and documents are to be filed;
- If you want to use a regular expression to automatically detect folders in your network share that should match topics in Constellio, enter " 1 " to select the " Use a regular expression " option;
- If you do not want to automatically detect topics, type " 2 " to select the " Use a default topic " option, then enter the code of the topic in which all folders/documents in your network share should be classified, then skip directly to step "i";
- Enter the regular expression that identifies the " pattern " of the title of your files; For example, in order for the following folders to be considered headings, the regular phrase "^[0-9]{2}-[0-9]{3} - .*" should be entered.
i. Verify that all configurations are correct, then enter " 1 " to select " Generate Import File ";
j. Go to the directory where the file was generated and then open the file with Excel; Validate the information generated in the file. The "folder" tab corresponds to all the folders and subfolders in your directory and the "document" tab corresponds to all the files in your directory.
If necessary, you can edit the values or add new metadata to this template before performing the import.
See thegabarits d’importationpage for more details.
5. Import the generated template into Constellio
- From the main menu, enter " 1 " to navigate to the import utility page;
- Enter " 2 " to register the import configurations. If the import has already been configured previously, skip directly to step f;
- A menu to define the source file and the temporary file is displayed. Enter " 1 " navigate to the " Set Source File " menu;
d. Verify that the source file matches the template generated in step 4. If different, select " Use another file ", then enter the full path of the template to import;
Caution: You must enter the full path of the file, including the name of the file and its extension.
e. Enter " 3 " to return to the import utility menu;
f. Enter " 1 " to select the " Start importing content " option, then wait for the import to complete.