Skip to content

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.

Any quick import always follows the same three steps:

  1. Download the Excel template you need.
  2. Complete the Excel with the data you want to import.
  3. Upload the Excel in the quick imports section and wait for the programme to finish processing it.

Smart OSH offers two templates depending on what you are going to load:

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.

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).

The three download options are in Settings > Quick imports > Operations.

  1. Go to Settings > Quick imports.
  2. Click on Operations > Export empty template.
  3. Open the downloaded Excel document.
  1. Go to Settings > Quick imports.
  2. Click on Operations > Export employee load template.
  3. Open the downloaded Excel document.

If you want to see an example of how to complete the Excel:

  1. Go to Settings > Quick imports.
  2. Click on Operations > Export template with example data.
  3. Open the downloaded Excel document.
  1. Open the Excel template you want to complete. If the download opens in protected view, click Enable Editing.
  2. Complete the data in the tabs you want to import.
  3. Save the Excel on your computer.

These rules apply to all tabs and are the most common cause of errors when omitted:

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.

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.

ColumnDescription
OperacionModificación to add/modify; Eliminar to permanently delete.
CodigoRecord code. Must exactly match the one in Smart OSH if the company already exists.
NombreCompany name or identifying name.
TipoIdentificacion0 (CIF), 1 (NIF), 2 (NRT), 99 (Others).
IdentificadorIdentification number corresponding to the type (CIF, NIF, NRT or Others).
ObservacionesNotes to include in the company detail screen.
EMailEmail address for the detail screen.
DescripcionActividadActivities to include in Description and classification.
DescripcionInstalacionesFacilities to include in Description and classification.
TelefonoPhone number to include in the Phones tab.
ActivoX to keep the company active.
EtiquetasTags to add in the detail screen.
CodigoCNAECode of the National Classification of Economic Activities to include in Description and classification.
ColumnDescription
OperacionModificación to add/modify; Baja to permanently delete.
CodigoEmpresaCode of the company to which the site belongs. Must exactly match Smart OSH.
CodigoCentroSite code. Must exactly match if it already exists.
NombreIdentifying name of the site.
ActivoX to keep the site active.
DireccionWill be included in the Street field of the detail screen.
CiudadWill be included in the Town field.
PaisWill be included within the Address field.
TelefonoPhone number to include in the Phones tab.
DescripcionActividadActivities to include in Description and classification.
DescripcionInstalacionesFacilities to include in Description and classification.
CNAECNAE code to include in Description and classification.
CCSSSocial Security Contribution Account to include in Description and classification.
EmailEmail address for the site detail screen.
EtiquetasTags to add in the detail screen.
LatitudLatitude to add in Description and classification.
LongitudLongitude to add in Description and classification.
TecnicoPRLEmployee identifier to be added as Main PRL Technician in the Preventive modalities tab.
ListaTecnicosPRLAdditional PRL technician identifiers. Separate multiple employees with ;.
ObservacionesNotes to include in the site detail screen.
ColumnDescription
CodigoEmpresaCode of the company to which the section belongs. Must exactly match Smart OSH.
OperacionModificación to add/modify; Baja to permanently delete.
CodigoCentroCode of the site to which the section belongs. Must exactly match.
CodigoSeccionSection code. Must exactly match if it already exists.
NombreIdentifying name of the section.
DescripcionActividadActivities to include in the Description tab.
DescripcionInstalacionesFacilities to include in the Description tab.
EtiquetasTags to add in the detail screen.
ActivoX to keep the section active.
ObservacionesNotes to include in the detail screen.
ColumnDescription
CodigoEmpresaCompany code. Must exactly match Smart OSH.
CodigoCentroSite code. Must exactly match.
OperacionModificación to add/modify; Baja to permanently delete.
CodigoSeccionSection code. Must exactly match.
CodigoPuestoPosition code. Must exactly match if it already exists.
NombreIdentifying name of the position.
DescripcionFuncionDescription of the position’s functions, to include in the Description tab.
CNOCode of the National Classification of Occupations to include in the Description tab.
EtiquetasTags to add in the detail screen.
ActivoX to keep the position active.

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.
ColumnDescription
OperacionModificació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).
CodigoRecord code. Free field and must be unique.
NombreEmployee’s first name.
Apellido 1First surname.
Apellido 2Second surname.
TipoIdentificacion0 (NIF/NIE), 1 (Cass), 99 (Others).
IdentificacionIdentification number corresponding to the type.
EmailEmployee’s email address.
FechaNacimientoDate of birth in DD/MM/YYYY format.
SexoM (Male) or F (Female).
SensibilidadEM (Pregnant), ES (Special Sensitivity), LA (Breastfeeding), MY (Older). Separate multiple sensitivities with ;. The sensitivity “Minor” is calculated automatically from the date of birth.
DireccionStreet from the Address field in the detail screen.
CiudadTown from the Address field.
ProvinciaProvince from the Address field.
CPPostal code from the Address field.
PaisCountry from the Address field.
TelefonoPhone number to include in the Phones tab.
NASSSocial Security affiliation number.
TipoEmpleado0 (Internal), 1 (External), 2 (Self-employed), 3 (Temporary Employment Agency).

These columns are only in the Employees tab of the empty template:

ColumnDescription
ObservacionesNotes to include in the employee detail screen.
IdentificacionResponsableID or identifier of the hierarchical supervisor employee. The supervisor must exist previously or have been loaded in a previous row of the same Excel.
FechaUltimoReconocimientoDate of the last medical check-up (DD/MM/YYYY format). Will be included in Medical fitness and waivers.
CaducidadCertificadoExpiry date of the medical certificate (DD/MM/YYYY format). Will be included as Next medical check-up date for employee.
Idiomaca-ES (Catalan), es-ES (Spanish), en-GB (English), fr-FR (French).
EtiquetasTags to add in the detail screen.
NacionalidadNationality code according to ISO 3166 standard.
EnviarEmailsAlSupervisorX 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.
DocBienvenidaEnviadoX if you DO NOT want welcome document emails to be sent. Checks Welcome document(s) sent.
ResumenAptitud0 (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.
TeleTrabajoX 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:

ColumnDescription
CodigoEmpresaCode of the company to which the employee is assigned. Must exactly match Smart OSH.
CodigoCentroSite code. Must exactly match.
CodigoSeccionSection code. Must exactly match.
CodigoPuestoPosition code. Must exactly match.
FechaAltaStart date of the position assignment (DD/MM/YYYY format).
FechaBajaEnd date of the position assignment (DD/MM/YYYY format).

The Assignments tab links each employee with their position within the organisational structure. Its behaviour depends on the template used.

In the empty template, the Assignments tab is editable and must be completed manually.

ColumnDescription
OperacionModificación to add/modify; Baja to delete. To mark the assignment as inactive, use Modificación and complete FechaBaja.
CodigoEmpresaCompany code. Must exactly match Smart OSH.
CodigoCentroSite code. Must exactly match.
CodigoSeccionSection code. Must exactly match.
CodigoPuestoPosition code. Must exactly match.
IdentificacionEmployee identification number (CIF, NIF, NRT or Others).
FechaAltaStart date of the assignment (DD/MM/YYYY format).
FechaBajaEnd date of the assignment (DD/MM/YYYY format).
TipoContratoName of the employee’s contract type. Added in the Assignments tab of the employee detail screen.
SituacionProfesionalName of the employee’s professional situation.
RegimenSSName of the Social Security regime.
TextoConvenioName of the applicable collective agreement text.
CodigoEmpresExternaCode of the external company to which the employee belongs, if applicable.
HorasTrabajadasNumber of hours worked for that assignment.
PrincipalX to mark this assignment as the employee’s main position.

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.

Once you have completed the Excel, the last step is to upload it to Smart OSH and monitor the result.

  1. Go to Settings > Quick imports.
  2. Click New and complete the record fields.
  3. Click Save.
  4. Click Import.
FieldDescription
NombreIdentifying name of the import. For example: “Employees December 2021”.
ArchivoExcel document with the data to import.
EstadoDefault 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.
UsuarioAutomatically filled by the programme with the user who creates the record.

After clicking Import, the system manages the import in the background:

  1. The Estado changes to Started at the start.
  2. The Fecha última carga (o reintento) is filled immediately.
  3. Wait a reasonable time and refresh the page to see progress.
  4. 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.

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.

Source: PR-SO-21-023 “Quick imports”, version 1.1, 12/04/2022.