Creating Data Importers

You can create data importers for importing custom fields or any other additional fields into employees.

Creating a Data Importer for Updating Supervisors and Contract End Date #

Here is an example of creating a Data Importer for updating supervisors and some custom fields:

  1. Login as Admin and Navigate to System -> Data -> Data importers.
  2. Create a new Data importer named “Supervisor and Custom Field Importer” and Data Type should be “EmployeeDataImporter”.

3. Each importer should have one ID column. For employees, the id column should be employee_id. Here is how you can add this unique id column.

4. Edit the newly created data importer and add a new column named employee_id.

The Type of the column should be Reference. We call this type of column a reference type column because it depends on another row in a different or same entity. When you select the Type as Reference, select the ideal options for Depends On and Depends On Field as in the below screenshot.

Note that the value “is ID field” is Yes.

Sample Value should be a value shown in the sample download. For this column, you can set the sample value as EMP050. Under the Help Text enter a small description about the column.

5. Then add the column for Supervisor. This column is also a Reference column.

Note that we have set “Is Id Field” as No. Click on the Save button once you add all the columns you require.

How to create a custom field for Contract End Date #

Navigate to Admin -> Custom Fields -> Add New.

Add a custom field name as Contract End Date.

Now you can add a column to the existing Employee Data Importer for importing data for “Contract End Date”.

Now you can create the CSV file to import the supervisors and contract end date for employees. In the CSV file, there should be three columns defined for Employee Id, Supervisors, and Contract End Date. The supervisor field should hold the employee_id of the supervisor.

Download the file already created CSV file for this step from here.

Then go to the Data Import Files tab. Click on New to upload a new Data Import File. Name the File and select the Employee Data Import option for the Data Import Definitions. Then upload the CSV file and click on Save.

Then process the file.

Creating a Data Importer for Updating Approvers #

As explained above, first we need to create columns for the Approvers.

  1. To do this, Navigate to System -> Data -> Data Importers. Then click on the Add New option under the Data Importers. Name the Date Importer and then Select Employee Data as the Data Type.

2. Click on the Add button to create columns. The first column should be employee_id.

3. Then create columns for the Approvers. Click on the Add button to create more columns. Name the Column ID as “approver1”.

4. Then select the Type as Reference. Select Employee as the Depends On and employee_id as the Depends on Field. Set the Value as No to “Is Id Field”.

5. Repeat the same steps for other levels of approvers as well. And click on the Save button to save the changes.

6. Then go to the Data Import Files tab. Click on New to create a new Data Import File. Name the File accordingly and Select the Employee Data Import option for the Data Import Definitions. Then upload the CSV file and click on Save.

7. Then click on the Process button.

Creating a User Data Importer #

Using IceHrm latest features now you can automate the process of creating users. You can do this by creating a data importer.

Login as Admin and Navigate to System -> Data Importers.

Create a new Data Importer named “User Data Importer” and Data Type should be “UserDataImporter“.

Each importer should have one ID column. For this one ID column should be UserName. Here is how you can add this unique id column.

Click on the Add button in front of the Columns option. You need to add a column to each of these fields in order to create a user account.

  1. User Name
  2. Email
  3. User Level
  4. Employee

Let’s start with the first column, User Name.

Note that the value “is ID field” is YesSample Value should be a value shown in the sample download. For this column, you can set the sample value as user1.

Under the Help Text enter a small description about the column.

The second Column is the Email column.

Note that the value “is ID field” is No.

Sample Value can be an example email address. The third column is the User Level column.

Note that the value “is ID field” is NoSample Value can be one of the User Levels.

The fourth column is the name of the Employee.

Note the Type of the column should be Reference.

Then Select Employee in the Depends On option and employee_id as the Depends on Field.

When you create your CSV file, under the employee column, you need to enter the employee_id data so that IceHrm finds the matching employee and updates the user.

Now you can create the CSV file to import User Data. In the CSV file, there should be four columns defined for username, email, user_level, and employee. As mentioned above the employee column should hold the employee_id of each employee.

Download the sample file already created for this step from here. Download it as a CSV file when you import it to IceHrm.

Powered by BetterDocs