2.9. Data Import
The Data Import feature is only available with the additional package dfx-import installed. Import can be used to create or update records. Using this feature, you can transfer data from Excel and XML files into:
- Document types
- User dictionaries
- System dictionaries
To perform a data import, complete the following steps:
- Create an import template. In the template, you can configure the mapping between parts of the file and the platform attributes into which you want to transfer the data.
- Run the import.
2.9.1. Create an Import Template
You can create a template for importing data from the following file types:
- Excel file — files with the .xls or .xlsx extension, containing no more than one sheet.
- XML file — a file with the .xml extension.
2.9.1.1. Template for Importing Data from an Excel File
-
In the navigation panel, select the Studio 1 workspace.
-
Select the Data Import 2 shortcut group, then select the Import Templates 3 shortcut.
-
In the toolbar, select Create 4.
-
Fill in the fields 1 using the hints in the table below, then in the toolbar select Save.
| Field | Description |
|---|---|
| Code* | Unique code of the import template.
|
| Name* | Enter the template name as it will appear in the platform interface. The name can contain any characters and be written in any language. Make the name descriptive so its purpose is clear. Example: "Invoice Import 2025", "Employee Directory", "Product Catalog". |
| Description | Optional field where you can describe the template's purpose and usage details in full. Example: "Template for monthly product list updates from 1C", "Import of new employees from the HR department file" |
| Object type* | Select one of the following object types into which data will be imported. |
| Object* | After selecting the object type, select the specific object (document type, user dictionary, or system dictionary) into which data will be imported. |
| Binding settings* | Binding settings are the most important part of the configuration, where you define the mapping between the columns of your Excel file and the attributes in the system.
|
Fields marked with * are required.
When importing Boolean attribute values, enter "Yes" in the Excel file if the toggle should be enabled, or leave the cell empty if the toggle should be disabled.
2.9.1.2. Template for Importing Data from an XML File
| Field | Description |
|---|---|
| Code* | Unique code of the import template.
|
| Name* | Enter the template name as it will appear in the platform interface. The name can contain any characters and be written in any language. Make the name descriptive so its purpose is clear. Example: "Invoice Import 2025", "Employee Directory", "Product Catalog". |
| Description | Optional field where you can describe the template's purpose and usage details in full. Example: "Template for monthly product list updates from 1C", "Import of new employees from the HR department file" |
| Object type* | Select one of the following object types into which data will be imported. |
| Object* | After selecting the object type, select the specific object (document type, user dictionary, or system dictionary) into which data will be imported. |
| Binding settings* | Binding settings* are the most important part of the configuration, where you define the mapping between the attributes of the XML file and the attributes in the system.
|
Fields marked with * are required.
2.9.2. Run the Import
You can run the import using one of the following methods:
Method 1: Via the system "Import" shortcut.
available to users with the admin role
available to users with the admin role
-
In the navigation panel, select the Documents 1 workspace.
-
Select the Data Import 2 shortcut.
-
In the Template 1 field, select the required data import template.
-
In the File content field, select + 2 to upload the file from which you want to import data.
-
Select the Import 3 button.
After the import starts, the system checks for all columns defined in the import template and displays a data preview. To cancel the import, select the Discard changes button.
Method 2: Via a user shortcut
available to all users
available to all users
Via a user shortcut of the Documents or User Dictionaries type. This method is available to all users who have been granted access to the shortcut by its creator.
-
When creating the shortcut, in the Type 1 field, select Documents or User Dictionaries.
-
In the toolbar, select the Save 2 icon.
-
In the top right corner of the dictionary, select the 1 icon, then select Data Import 2.
-
In the Template 1 field, select the required data import template.
-
In the File content field, select + 2 to upload the file from which you want to import data.
-
Select the Import 3 button.
After the import starts, the system checks for all columns defined in the import template and displays a data preview. To cancel the import, select the Discard changes button.
2.9.3. Configure Attachment and QES Import
The platform allows you to import attached files and their QES (qualified electronic signatures) into file attributes of documents. To do this, complete the following steps:
- Create a data import template. When creating the template, in the Binding settings field, enable the file attribute 1 into which you want to import attachments.
- In the Message field 2, enter the required attribute name.
- In the Signatures 3 field, select one of the following options:
- None — Import files without a QES, in .txt, .doc, .docx, .png, .pdf, .xls, or .xlsx format.
-
In separate files — the main file and QES are imported separately. The signature file must have the same name as the main file with the ".p7s" extension appended at the end.
Example:
Main file:Act.docx
QES file:Act.docx.p7sNote:If you need to import multiple QES signatures for a single attachment, add sequential signature numbers to the signature file names.
Example:
Main file:Act.docx
First QES file:Act.docx.1.p7s
Second QES file:Act.docx.2.p7s
Third QES file:Act.docx.3.p7s
-
In a container — the file and QES are combined into a single container. The container name must include the full file name with the .p7s extension.
Example:
ActOfCompletedWorks.docx.p7s
- In separate files or in a container — both of the above options are supported.
-
Optional: In the File extension field, you can select the file extensions available for import. For example, if you select .pdf, all files in the .zip archive with a different extension will be ignored by the platform during import.
2.9.4. Run Attachment and QES Import
You can import not only data from a file, but also additional attachments you want to add to the document — these can be regular files or files with signatures. You can import them from your Excel or XML file directly into the file attributes of your document.
To run the import of document attachments and their signatures, complete the following steps:
-
Complete all the steps described in the previous section Configure Attachment and QES Import.
-
Open the Data Import window. You can do this using one of the following methods, depending on the role of the user performing the import:
2.1. Via the system "Import" shortcut. This method is available only to users with the admin role.
2.2. Via a user shortcut of the Documents or User Dictionaries type. This method is available to all users who have been granted access to the shortcut by its creator. -
In the Data Import window, in the Template field, select the import template you created in the first step of this guide.
-
In the File content field, select the + icon to add the Excel or XML file that contains the attachment file names.
Note:Regarding attachment names in the Excel or XML file:
-
If there is one attachment and it will be imported into a Document image or File attribute type, enter the full file name with extension in the Excel or XML file.
Example: ActOfCompletedWorks.docx.
-
If there are multiple attachments and they will be imported into a Document attachments or File collection attribute type, enter the names of the folders containing the files in the Excel or XML file.
Example: "Attachment 1", "Attachment 2".
-
-
In the Attachments field, select the + icon to add a .zip archive containing one or more attachments.
-
If there is only one attachment, the file must be placed in a .zip archive. It will be imported into a Document image or File attribute type, depending on the settings you configured in the first step of this guide.
-
If there are multiple attachments, each attachment file must be placed in a separate folder together with its signatures. All these attachment folders must then be grouped into a single .zip archive. Multiple attachments will be imported into Document attachments or File collection attribute types, depending on the settings you configured in the first step of this guide.
*The format and number of files depends on the value of the "Signatures" field you selected when creating the import template. -
-
Select the Next button.
After the import starts, the system checks for all columns defined in the import template and displays a data preview. To cancel the import, select the Discard changes button.
2.9.5. Import Data into Table Attributes
If you want to import data into table-type attributes, this cannot be configured at the document type, user dictionary, or system dictionary level. However, you can import data into a table attribute of the Table/Collection custom attribute type directly on the form of a specific document or task. Make sure that Detailed table settings and Detailed form settings are enabled and configured in your Table/Collection attribute.
-
Open the relevant workspace depending on the entity type:
1.1. To import data into a document form, select the Documents 1 workspace, then select the Documents 2 shortcut.1.2. To import data into a task form, select the Tasks 1 workspace, then select the All Tasks 2 shortcut.
-
Select the task or document whose table attribute you want to import data into.
-
Find the table attribute on the form into which you want to import data.
Note:For this import type, you can only use a custom attribute of the Table/Collection type.
Note:Your attribute may have a different name — what matters is that it was created with the Table/Collection type.
-
On the attribute, select the 1 icon, then select Import 2.
-
Select the .xls or .xlsx file on your device from which you want to import data into the attribute. Also make sure your table in the file meets the following requirements:
Note:Before importing data into a table attribute, prepare the table in the Excel file according to these requirements:
- The first row of the table A must be empty.
- The first column of the table B must be empty.
These empty row and column are used by the platform as technical offsets and are not imported into the attribute data.
-
In the toolbar, select Save 3.
2.9.6. Grant Access to Import
By default, import can be performed by users with the Developer and Data manager roles.
To grant import access to users with other roles:
-
In the navigation panel, select the Studio 1 workspace.
-
Select the Data Import 2 shortcut group, then select the Import Templates 3 shortcut.
-
Open the import template 4 to which you want to grant access.
-
Select one of the available methods:
Method 1: Using the button on the top panel
a. On the top panel of the form, select the Permissions button.
Method 2: Through the settings menu
a. To open the settings menu, select the icon in the top right corner of the form 1.
b. From the expanded menu, select Permissions 2.
-
In the toolbar, select the + icon.
-
In the Subject 1 field, select one of the following options:
- Organizational units — select this option to grant access to one of the following entity types: our organizations, departments, positions, or executor groups.
- Administration subjects — select this option to grant access to one of the following entity types: user groups, roles, or users.
-
In the desired entity field 2, add the specific unit to which you want to grant access.
-
In the toolbar, select Save 3.
2.9.7. View Import History
You can view the status and details of a completed import in two ways:
- By import template — view the import history for a specific import template.
- All imports — view the history of all imports regardless of the template. By default, import records are sorted by execution date.
2.9.7.1. Import History by Template
You can view the import history for a specific import template.
-
In the navigation panel, select the Studio 1 workspace.
-
Select the Data Import 2 shortcut group, then select the Import Templates 3 shortcut.
-
Right-click the required import template 4.
-
Select Details 1, then Import Log 2.
The Import Log window will appear at the bottom of the screen, where you can view the status of imports performed using the selected template.
2.9.7.2. All Imports History
You can view the status and details of all imports performed on the platform.
-
In the navigation panel, select the Studio 1 workspace.
-
Select the Data Import 2 shortcut group, then select the Import Log 3 shortcut.
-
Select the record 4 whose details you need.
-
To view the import details for each attribute, go to the Data tab.
2.9.8. Bulk Import from Folder
The Bulk Import from Folder feature is only available with the additional package dfx-mass-file-import installed.
The Bulk Import from Folder feature allows you to import a large number of files stored in a folder on the server into the platform. This is useful when your documents come from scanners, external systems, or services that place files into a predefined folder.
During import, the platform processes all files in the selected directory, except those located in nested subfolders.
2.9.8.1. Import Files from a Folder
The folder must be on the server. It is typically connected by a system administrator using a file manager (for example, WinSCP or Total Commander).
-
Create a custom Text attribute.
In the following steps, the name of the import folder will be stored in this attribute's value. Name it, for example, "Bulk import folder name" and set the Code field to "Mass_folder_name". -
Create a custom File Collection attribute.
At the end of this guide, the imported files will be stored in this attribute's value. Name it, for example, "Imported files collection" and set the Code field to "Imported_files". -
Open or create a document type.
When creating it, go to the Constructor tab to add and configure the relevant attributes:-
Add the custom Text attribute (the one you created in step 1 of this guide) to the document type form.
-
Add the custom File Collection attribute (the one you created in step 2 of this guide) to the form.
-
-
Create a document based on the document type you created in the previous step. When creating it, do the following:
-
On the form, select the custom Text attribute and enter the name of the server folder from which you want to import files as its value.
-
-
In the navigation panel, select the Studio 1 workspace.
-
Select the Data Import 2 shortcut group, then select the Bulk Import from Folder 3 shortcut.
-
In the toolbar, select Import files 4.
-
In the Path to the directory with files on the server field, enter the path to the folder relative to the server.
-
In the Search attribute code field, enter the code of the attribute whose value contains the folder name (step 4, point i. of this guide).
-
In the "File Collection" attribute code field, enter the code of the attribute you added to the document form in step 3, point ii. of this guide.
-
Select the Do not import duplicates checkbox if you want the system to check imported files for duplicates by name and size.
-
Select the Validate "File Collection" attribute restrictions checkbox. The system will then apply the format and size validation you configured when creating the attribute.
-
Select Import.
After this, all contents of the server folder (that meet the criteria you specified) will be imported into the "File Collection" attribute value.
2.9.8.2. View the Bulk Import Status
-
In the navigation panel, select the Studio 1 workspace.
-
Select the Data Import 2 shortcut group, then select the Bulk Import from Folder 3 shortcut.
-
In the grid, you can view the import status A, the start and end dates of the import B, and the number of imported files C.
-
If errors occurred during import, you can view their count in the Errors A column, and download a detailed error report from the Action B column.
The error report consists of two sections: Errors A and Processed B.
-
The Errors section lists the folder name that was checked during import, as well as the reason why the file import from that folder was not completed.
-
The Processed section lists the document ID and the name of the file that was successfully imported into the File Collection attribute defined in the import settings form.
-