The integration module allows administrators to perform bulk data initialization or updates.

  • ​You can craft an excel template from a report and export data to store off the excel file.
  • Use the same excel file to populate data and upload data to Calem.


1. Data Upload

Calem provides a few ways to upload data based on your business requirements:

  • Manual upload from an exported file
  • Manual upload from an excel template
  • Batch upload from command line
  • Scheduled upload

Data Validation Configuration

By default Calem Enterprise Upload utility will verify lookup values and will fail the upload if a lookup value is invalid. For instance, a location of an asset is not found in Calem when uploading an asset with a reference to that location. Calem will fail the upload.

Alternatively, you may turn off the data validation so that Calem will create missing lookup values. If the creation is successful the upload will go through successfully.

Here is the recommendation about the data validation configuration:
  • ​The data validation should be left enabled by default all the time. This is important so data would not be added to your service by accident. For instance, a location "Server-Central" was misspelled as "Server_Central", a new location "Server_Central" will be added if the validation was turned off.
  • You may turn off validation at initial data population, or bulk data creation. This will be a saving if you let Calem add missing lookup values initially. For instance, you are upload a user with job role "Electrician", instead of manually creating "Electrician" before a user can be uploaded, you may have Calem create "Electrician" in the job role object automatically by turning off the data validation.
  • The validation should be left on for "Bulk Update" to be discussed below.
You can manage the data validation by adding the following configuraiton in your "server/conf/calem.custom.php":

//Lookup reference validation is required (true), or auto-added (false) 
$_CALEM_dist['calem_data_upload']['validate_ref_id']=true;


2. Bulk Update

​In Calem release R10 you can batch update data through data export and import. This is recommended approach to update multiple data rows.

Here are the steps:

  • To update data the key correct field or fields must be included for upload to be successful.
    • Use "Customize" button on a list report to turn a report into design mode. Right click on the list caption row to add or remove columns you need to upload to the list. So, the final list view should include all the fields you need to populate data with.
    • See this blog for report list customization.
  • Use a report list to export data to be updated. For instance, "Asset module | Report | Asset report list". 
    • Narrow down the list through search before exporting the list.
    • If the report list does not include the fields you need to change or add. Customize the report list to include the fields you need (see Admin Guide for report customization). 
  • Edit the excel file and save changes. 
  • Upload the excel file to the database. The menu path is "Integration module | Data Upload"


3. Null Value

A null value means no value in a database field. One can set a database field to null in Calem by "_null_" (underscore, "null", underscore). 

  • A lookup field can be set to null (such as the parent Id of an asset).
  • A string field can be set to null (such as the description of an item)
  • A numerical value can be set to null (such as an asset's weight).
  • A datetime field can be set to null (such as an asset's start date).

4. Id Column

Each record in Calem has an "Id" field. The "Id" field uniquely identify a data row. You may include the "Id" field in your export if you need to modify the key fields of a row. For instance, if you have to change item numbering or asset tags, you need to include the "Id" field in the export so Calem knows which row to apply the key field changes such as item number and asset tag.

Customers of CalemEAM can reference "Calem Enterprise Data Upload Guide" at Support Site for more information.

Additional resources