Import Employee Configuration

Overview

The Import Employee Configuration feature allows administrators to configure how employee data is mapped and imported from Excel files. This configuration defines which columns in your Excel file correspond to which employee attributes in the system, ensuring accurate data import.

image.png


Accessing the Feature

  1. Navigate to the Admin section in the main menu
  2. Select Import Employee from the admin options
  3. Scroll down to the Import Employee Configuration card section

Configuration List Overview

The configuration list displays all existing import configurations in a table format. Each row represents one configuration that maps an Excel column to an employee attribute.

Table Columns

image.png

Column

Header Name

Attribute

Type Process

Required

Status

Options


Search Functionality

image.png

The search bar allows you to quickly find configurations by:

  1. Click in the search input field at the top of the configuration table
  2. Type your search term (e.g., "Employee ID", "A", "identification")
  3. Press Enter or wait for automatic filtering
  4. The table will show only matching configurations
  5. To clear the search, delete all text from the search field

Tooltip: "Search configurations by header name, column letter, or attribute"


Creating a New Configuration

image.png

Step-by-Step Guide

image.png

  1. Click the "New Configuration" button

    • Located at the top right of the configuration table
    • Tooltip: "Create a new import employee configuration"
  2. The configuration form modal will open

    • Title: "New Import Employee Configuration"
  3. Select Type Process (First field - Required)

    • This determines what type of data this configuration handles
    • Options:
      • EMPLOYEE - Standard employee information (default)
      • TYPE TEST - Drug and alcohol test types
      • CUSTOM COLUMN - Custom column data
    • image.png

  4. Based on Type Process selection, additional fields will appear:

    If "TYPE TEST" is selected:

    • Type Test field appears (Required)
    • Select from dropdown:
      • Pre Employment
      • Post Accident
      • Reasonable Susp Cause
      • Return To Duty

    If "CUSTOM COLUMN" is selected:

    • Custom Column field appears (Required)
    • Select from dropdown showing available custom column codes
    • Only the custom column name is displayed (not the code)

    If "EMPLOYEE" is selected (default):

    • Column Name Person field appears (Required)
    • Select from dropdown showing available person fields
    • System fields (id, created_by, etc.) are hidden
    • Attribute Name Entity field appears automatically (Read-only)
    • This field auto-fills based on your Column Name Person selection
    • For foreign keys (ending in _id), it shows the entity.code format
  5. Enter Header Name (Required)

    • The name that appears as the column header in Excel
    • Example: "Employee ID", "First Name", "Location Code"
    • This is what users will see in their Excel file
  6. Select or Enter Column Letter (Required)

    • Option 1: Select from predefined list
      • Options include: N_A, A, B, C, D... Z, AA, AB... AI
      • Used letters (except N_A) are not available
      • N_A is always available
    • Option 2: Select "Custom..." to enter a custom letter
      • Enter letters only (e.g., "HG", "XY")
      • Automatically converts to uppercase
      • Numbers and special characters are not allowed
      • Click "Cancel" to return to predefined list
  7. Select Cell Type (Optional, defaults to "STRING")

    • Available options:
      • Numeric
      • String
      • Blank
      • Local Date
      • Enum
    • Note: Some technical types are hidden from the list
  8. Enter Default Value (Optional)

    • A default value to use if the Excel cell is empty
    • Text input field
    • Example: "N/A", "0", "Default Location"
  9. Enter Constant Value (Optional)

    • A constant value that will always be used for this column
    • Text input field
    • Example: "ACTIVE", "USA"
  10. Enter Cell Format (Optional)

    • Format specification for the cell data
    • Text input field
    • Example: Date formats, number formats
  11. Set Mandatory (Checkbox, defaults to unchecked)

    • Check "Required field" if this column must have data in Excel
    • Unchecked = Optional field
    • Checked = Required field (will show error if empty during import)
  12. Set Enabled (Checkbox, defaults to checked)

    • Check "Active" to enable this configuration
    • Unchecked = Configuration is disabled (skipped during import)
    • Checked = Configuration is active (used during import)
  13. Click "Create" button

    • Button is disabled until all required fields are filled
    • Tooltip: "Create a new import employee configuration"
  14. Success message appears

    • "Configuration was added successfully"
    • The modal closes automatically
    • The new configuration appears in the table

Field Validation


Editing a Configuration

Step-by-Step Guide

  1. Locate the configuration in the table

    • Use search if needed
  2. Click the Edit icon (pencil) in the Options column

    • Tooltip: "Edit configuration"
  3. The edit form modal opens

    • Title: "Edit Import Employee Configuration"
    • All fields are pre-filled with current values
  4. Modify the fields as needed

    • Same fields and rules as creating a new configuration
    • Note: Column Letter shows current value (even if it was custom)
    • Used column letters are updated (current configuration's letter remains available)
  5. Click "Update" button

    • Tooltip: "Update the import employee configuration"
  6. Success message appears

    • "Configuration was updated successfully"
    • The table refreshes with updated data

Important Notes


Deleting a Configuration

Step-by-Step Guide

  1. Locate the configuration in the table

  2. Click the Delete icon (trash) in the Options column

    • Tooltip: "Delete configuration"
  3. Confirmation dialog appears

    • Title: "Are you sure?"
    • Message: "Do you want to delete the configuration for column [LETTER]?"
    • Options:
      • "Yes, delete it!" - Confirms deletion
      • "Cancel" - Cancels the action
  4. If confirmed:

    • Configuration is permanently deleted
    • Success message: "Deleted! Configuration has been deleted."
    • Table refreshes automatically
  5. If cancelled:

    • Dialog closes
    • No changes are made
    • Configuration remains in the table

Important Notes


Understanding Type Process Options

EMPLOYEE (Default)

Purpose: Maps Excel columns to standard employee data fields

When to use: For basic employee information like:

Fields shown:

Example:

TYPE TEST

Purpose: Maps Excel columns to drug and alcohol test types

When to use: For test type columns like:

Fields shown:

Example:

CUSTOM COLUMN

Purpose: Maps Excel columns to custom column data

When to use: When you have custom fields defined in the system

Fields shown:

Example:

ADDITIONAL_DATA

Purpose: For additional data that doesn't fit standard categories

When to use: For special data fields not covered by other types

Fields shown:

Note: This option is hidden from the Type Process dropdown but can be edited if it exists in existing configurations.


Field Descriptions

Header Name

Column Letter

Column Name Person

Attribute Name Entity

Cell Type

Default Value

Constant Value

Cell Format

Mandatory (Required Field)

Enabled (Active)


Validation Rules and Error Messages

Required Field Validation

Rule: Fields marked with red asterisk (*) must be filled

Error indication:

Required fields:

Column Letter Validation

Rules:

Error messages:

Form Submission Validation

Rule: All required fields must be valid before submission

Behavior:

Success messages:

Error messages:

Common Use Cases

Use Case 1: Setting Up Basic Employee Import

Scenario: You need to import employee data with standard fields (ID, Name, Email)

Steps:

  1. Create configuration for Employee ID

    • Type Process: EMPLOYEE
    • Header Name: "Employee ID"
    • Column Letter: "A"
    • Column Name Person: "identification"
    • Mandatory: Checked
    • Enabled: Checked
  2. Create configuration for First Name

    • Type Process: EMPLOYEE
    • Header Name: "First Name"
    • Column Letter: "B"
    • Column Name Person: "name"
    • Mandatory: Checked
    • Enabled: Checked
  3. Create configuration for Email

    • Type Process: EMPLOYEE
    • Header Name: "Email"
    • Column Letter: "C"
    • Column Name Person: "email"
    • Mandatory: Unchecked (optional)
    • Enabled: Checked

Use Case 2: Adding Test Type Columns

Scenario: You need to import pre-employment and post-accident test information

Steps:

  1. Create configuration for Pre-Employment

    • Type Process: TYPE TEST
    • Header Name: "Pre-Employment"
    • Column Letter: "H"
    • Type Test: "PRE_EMPLOYMENT"
    • Mandatory: Unchecked
    • Enabled: Checked
  2. Create configuration for Post-Accident

    • Type Process: TYPE TEST
    • Header Name: "Post-Accident"
    • Column Letter: "I"
    • Type Test: "POST_ACCIDENT"
    • Mandatory: Unchecked
    • Enabled: Checked

Use Case 3: Using Custom Column Letters

Scenario: Your Excel file uses column "HG" for a special field

Steps:

  1. Create configuration
    • Type Process: EMPLOYEE
    • Header Name: "Special Field"
    • Column Letter: Select "Custom..." then enter "HG"
    • Column Name Person: Select appropriate field
    • Enabled: Checked

Use Case 4: Temporarily Disabling a Configuration

Scenario: You want to skip a column during import without deleting the configuration

Steps:

  1. Find the configuration in the table
  2. Click Edit icon
  3. Uncheck "Active" (Enabled field)
  4. Click Update
  5. Configuration now shows red "DISABLED" badge
  6. This column will be skipped during import

Use Case 5: Making a Field Optional

Scenario: A field that was required should now be optional

Steps:

  1. Find the configuration
  2. Click Edit icon
  3. Uncheck "Required field" (Mandatory)
  4. Click Update
  5. Configuration now shows gray "NOT REQUIRED" badge
  6. Empty cells in this column will no longer cause import errors

Tooltips and Helpful Hints

Throughout the interface, you'll find helpful tooltips (blue information boxes) that appear when you hover over elements:

New Configuration Button

Edit Icon

Delete Icon

Cancel Button (in form)

Create/Update Button (in form)

Best Practices

1. Naming Conventions

2. Column Letter Management

3. Required Fields

4. Testing Configurations

5. Organization

6. Maintenance


Additional Notes

Documentation Button

Table Sorting

Pagination

Filtering


Summary

The Import Employee Configuration feature provides a flexible way to map Excel columns to employee data fields. By understanding:

You can efficiently set up and maintain your employee import configurations, ensuring accurate data import from Excel files.

For additional help, use the documentation button or contact your system administrator.


Revision #8
Created 2026-01-20 16:01:36 UTC by Harold Garcia
Updated 2026-01-20 20:27:02 UTC by Harold Garcia