Quick imports
Quick imports allow you to load information from the organisational structure into Smart OSH without having to do so via KB020 or the general data import system.
From this section, you can quickly import records of Companies, Sites, Sections, Positions, Employees, and Employee position assignments.
General flow
Section titled “General flow”Any quick import always follows the same three steps:
- Download the Excel template you need.
- Complete the Excel with the data you want to import.
- Upload the Excel in the quick imports section and wait for the programme to finish processing it.
Two templates, two use cases
Section titled “Two templates, two use cases”Smart OSH offers two templates depending on what you are going to load:
Empty template
Section titled “Empty template”This is the complete template. Use it when you want to load organisational structure (companies, sites, sections, positions) and, optionally, also employees and their assignments. It contains six tabs: Companies, Sites, Sections, Positions, Employees, and Assignments.
Employee load template
Section titled “Employee load template”A simplified template for when you only need to load employees and their assignments on an organisational structure that already exists in Smart OSH. It contains two tabs: Employees and Assignments (the latter is automatically completed from the Employees tab).
How to download a template
Section titled “How to download a template”The three download options are in Settings > Quick imports > Operations.
Empty template
Section titled “Empty template”- Go to Settings > Quick imports.
- Click on Operations > Export empty template.
- Open the downloaded Excel document.
Employee load template
Section titled “Employee load template”- Go to Settings > Quick imports.
- Click on Operations > Export employee load template.
- Open the downloaded Excel document.
Template with example data
Section titled “Template with example data”If you want to see an example of how to complete the Excel:
- Go to Settings > Quick imports.
- Click on Operations > Export template with example data.
- Open the downloaded Excel document.
How to complete the Excel
Section titled “How to complete the Excel”- Open the Excel template you want to complete. If the download opens in protected view, click Enable Editing.
- Complete the data in the tabs you want to import.
- Save the Excel on your computer.
General completion rules
Section titled “General completion rules”These rules apply to all tabs and are the most common cause of errors when omitted:
The “Operacion” field
Section titled “The “Operacion” field”Almost all tabs include an Operacion column with two possible values:
- Modificación: adds the record if it does not exist or modifies it if it already existed.
- Eliminar or Baja (depending on the tab): permanently deletes the record.
The “Codigo” field
Section titled “The “Codigo” field”When a column is called Codigo, CodigoEmpresa, CodigoCentro, etc., the value must be identical to the one already existing in Smart OSH if the record is already registered.
Companies tab
Section titled “Companies tab”| Column | Description |
|---|---|
| Operacion | Modificación to add/modify; Eliminar to permanently delete. |
| Codigo | Record code. Must exactly match the one in Smart OSH if the company already exists. |
| Nombre | Company name or identifying name. |
| TipoIdentificacion | 0 (CIF), 1 (NIF), 2 (NRT), 99 (Others). |
| Identificador | Identification number corresponding to the type (CIF, NIF, NRT or Others). |
| Observaciones | Notes to include in the company detail screen. |
| Email address for the detail screen. | |
| DescripcionActividad | Activities to include in Description and classification. |
| DescripcionInstalaciones | Facilities to include in Description and classification. |
| Telefono | Phone number to include in the Phones tab. |
| Activo | X to keep the company active. |
| Etiquetas | Tags to add in the detail screen. |
| CodigoCNAE | Code of the National Classification of Economic Activities to include in Description and classification. |
Sites tab
Section titled “Sites tab”| Column | Description |
|---|---|
| Operacion | Modificación to add/modify; Baja to permanently delete. |
| CodigoEmpresa | Code of the company to which the site belongs. Must exactly match Smart OSH. |
| CodigoCentro | Site code. Must exactly match if it already exists. |
| Nombre | Identifying name of the site. |
| Activo | X to keep the site active. |
| Direccion | Will be included in the Street field of the detail screen. |
| Ciudad | Will be included in the Town field. |
| Pais | Will be included within the Address field. |
| Telefono | Phone number to include in the Phones tab. |
| DescripcionActividad | Activities to include in Description and classification. |
| DescripcionInstalaciones | Facilities to include in Description and classification. |
| CNAE | CNAE code to include in Description and classification. |
| CCSS | Social Security Contribution Account to include in Description and classification. |
| Email address for the site detail screen. | |
| Etiquetas | Tags to add in the detail screen. |
| Latitud | Latitude to add in Description and classification. |
| Longitud | Longitude to add in Description and classification. |
| TecnicoPRL | Employee identifier to be added as Main PRL Technician in the Preventive modalities tab. |
| ListaTecnicosPRL | Additional PRL technician identifiers. Separate multiple employees with ;. |
| Observaciones | Notes to include in the site detail screen. |
Sections tab
Section titled “Sections tab”| Column | Description |
|---|---|
| CodigoEmpresa | Code of the company to which the section belongs. Must exactly match Smart OSH. |
| Operacion | Modificación to add/modify; Baja to permanently delete. |
| CodigoCentro | Code of the site to which the section belongs. Must exactly match. |
| CodigoSeccion | Section code. Must exactly match if it already exists. |
| Nombre | Identifying name of the section. |
| DescripcionActividad | Activities to include in the Description tab. |
| DescripcionInstalaciones | Facilities to include in the Description tab. |
| Etiquetas | Tags to add in the detail screen. |
| Activo | X to keep the section active. |
| Observaciones | Notes to include in the detail screen. |
Positions tab
Section titled “Positions tab”| Column | Description |
|---|---|
| CodigoEmpresa | Company code. Must exactly match Smart OSH. |
| CodigoCentro | Site code. Must exactly match. |
| Operacion | Modificación to add/modify; Baja to permanently delete. |
| CodigoSeccion | Section code. Must exactly match. |
| CodigoPuesto | Position code. Must exactly match if it already exists. |
| Nombre | Identifying name of the position. |
| DescripcionFuncion | Description of the position’s functions, to include in the Description tab. |
| CNO | Code of the National Classification of Occupations to include in the Description tab. |
| Etiquetas | Tags to add in the detail screen. |
| Activo | X to keep the position active. |
Employees tab
Section titled “Employees tab”The Employees tab exists in both templates with slightly different behaviour:
- Empty template: contains the employee’s personal data and is complemented with the Assignments tab for positions.
- Employee load template: contains personal data and position assignment data in the same tab.
Columns common to both templates
Section titled “Columns common to both templates”| Column | Description |
|---|---|
| Operacion | Modificación to add/modify; Baja to delete. To mark an employee as inactive without deleting, use Modificación and complete FechaBaja in the Assignments tab (empty template) or in the Employees tab itself (employee load template). |
| Codigo | Record code. Free field and must be unique. |
| Nombre | Employee’s first name. |
| Apellido 1 | First surname. |
| Apellido 2 | Second surname. |
| TipoIdentificacion | 0 (NIF/NIE), 1 (Cass), 99 (Others). |
| Identificacion | Identification number corresponding to the type. |
| Employee’s email address. | |
| FechaNacimiento | Date of birth in DD/MM/YYYY format. |
| Sexo | M (Male) or F (Female). |
| Sensibilidad | EM (Pregnant), ES (Special Sensitivity), LA (Breastfeeding), MY (Older). Separate multiple sensitivities with ;. The sensitivity “Minor” is calculated automatically from the date of birth. |
| Direccion | Street from the Address field in the detail screen. |
| Ciudad | Town from the Address field. |
| Provincia | Province from the Address field. |
| CP | Postal code from the Address field. |
| Pais | Country from the Address field. |
| Telefono | Phone number to include in the Phones tab. |
| NASS | Social Security affiliation number. |
| TipoEmpleado | 0 (Internal), 1 (External), 2 (Self-employed), 3 (Temporary Employment Agency). |
Columns specific to the empty template
Section titled “Columns specific to the empty template”These columns are only in the Employees tab of the empty template:
| Column | Description |
|---|---|
| Observaciones | Notes to include in the employee detail screen. |
| IdentificacionResponsable | ID or identifier of the hierarchical supervisor employee. The supervisor must exist previously or have been loaded in a previous row of the same Excel. |
| FechaUltimoReconocimiento | Date of the last medical check-up (DD/MM/YYYY format). Will be included in Medical fitness and waivers. |
| CaducidadCertificado | Expiry date of the medical certificate (DD/MM/YYYY format). Will be included as Next medical check-up date for employee. |
| Idioma | ca-ES (Catalan), es-ES (Spanish), en-GB (English), fr-FR (French). |
| Etiquetas | Tags to add in the detail screen. |
| Nacionalidad | Nationality code according to ISO 3166 standard. |
| EnviarEmailsAlSupervisor | X to send the employee’s emails to their PRL supervisor. Checks by default Send all employee emails through PRL supervisor. Exception: training and health surveillance emails are never sent to the supervisor. |
| DocBienvenidaEnviado | X if you DO NOT want welcome document emails to be sent. Checks Welcome document(s) sent. |
| ResumenAptitud | 0 (Undefined), 1 (Not fit), 2 (Fit without restrictions), 3 (Fit with restrictions), 4 (Partial fit), 5 (Waiver). Completes the Medical fitness summary field in Medical fitness and waivers. |
| TeleTrabajo | X to mark the employee as teleworking. |
Columns specific to the employee load template
Section titled “Columns specific to the employee load template”In this template, the Employees tab includes the position assignment data, avoiding the need to fill in the Assignments tab manually:
| Column | Description |
|---|---|
| CodigoEmpresa | Code of the company to which the employee is assigned. Must exactly match Smart OSH. |
| CodigoCentro | Site code. Must exactly match. |
| CodigoSeccion | Section code. Must exactly match. |
| CodigoPuesto | Position code. Must exactly match. |
| FechaAlta | Start date of the position assignment (DD/MM/YYYY format). |
| FechaBaja | End date of the position assignment (DD/MM/YYYY format). |
Assignments tab
Section titled “Assignments tab”The Assignments tab links each employee with their position within the organisational structure. Its behaviour depends on the template used.
Empty template
Section titled “Empty template”In the empty template, the Assignments tab is editable and must be completed manually.
| Column | Description |
|---|---|
| Operacion | Modificación to add/modify; Baja to delete. To mark the assignment as inactive, use Modificación and complete FechaBaja. |
| CodigoEmpresa | Company code. Must exactly match Smart OSH. |
| CodigoCentro | Site code. Must exactly match. |
| CodigoSeccion | Section code. Must exactly match. |
| CodigoPuesto | Position code. Must exactly match. |
| Identificacion | Employee identification number (CIF, NIF, NRT or Others). |
| FechaAlta | Start date of the assignment (DD/MM/YYYY format). |
| FechaBaja | End date of the assignment (DD/MM/YYYY format). |
| TipoContrato | Name of the employee’s contract type. Added in the Assignments tab of the employee detail screen. |
| SituacionProfesional | Name of the employee’s professional situation. |
| RegimenSS | Name of the Social Security regime. |
| TextoConvenio | Name of the applicable collective agreement text. |
| CodigoEmpresExterna | Code of the external company to which the employee belongs, if applicable. |
| HorasTrabajadas | Number of hours worked for that assignment. |
| Principal | X to mark this assignment as the employee’s main position. |
Employee load template
Section titled “Employee load template”In the employee load template, the Assignments tab is protected and not editable.
If you need to control advanced assignment fields (contract type, professional situation, hours worked, etc.), use the empty template, which allows all columns to be completed.
How to upload the Excel
Section titled “How to upload the Excel”Once you have completed the Excel, the last step is to upload it to Smart OSH and monitor the result.
- Go to Settings > Quick imports.
- Click New and complete the record fields.
- Click Save.
- Click Import.
Import record fields
Section titled “Import record fields”| Field | Description |
|---|---|
| Nombre | Identifying name of the import. For example: “Employees December 2021”. |
| Archivo | Excel document with the data to import. |
| Estado | Default is Not started. The programme changes it automatically as the process progresses. |
| Fecha última carga (o reintento) | Initially empty. The programme fills it automatically when executing the import. |
| Usuario | Automatically filled by the programme with the user who creates the record. |
How to monitor progress
Section titled “How to monitor progress”After clicking Import, the system manages the import in the background:
- The Estado changes to Started at the start.
- The Fecha última carga (o reintento) is filled immediately.
- Wait a reasonable time and refresh the page to see progress.
- When finished, the Estado will be one of these two values:
- Completed successfully: all records have been loaded without errors.
- Completed with errors: there was at least one problem with a record.
Behaviour in case of errors
Section titled “Behaviour in case of errors”You have two ways to obtain the error details:
- From the email the system sends when the import finishes with errors: it contains a link to the error log.
- From the log of the quick import itself in Smart OSH.
Final reminder
Section titled “Final reminder”Source: PR-SO-21-023 “Quick imports”, version 1.1, 12/04/2022.