Import transformation code

Import Transformation Codes are scripts for processing raw data into an importable format for the LDB.

Import transformation codes for import interfaces offer the possibility to convert the loaded raw data into a different format, or to process it further before it is imported into the LDB. The first parameter contains a String with the raw data. This can be processed either manually or with one of the provided libraries. The second parameter contains the filename, also as a String.

The return value must be an Array of objects whose keys correlate with the columns to be imported.

Example of a transformation code:

function transform (data, filename) {
  const parsedData = xmlParser.parse(data)
  const filenameWithoutExtension = filename.match(/(.*)\.\w+/)[1]
  
  let result = parsedData.ERGEBNIS.map((e) => {
    return {
      'Datum': e.Datum,
      'Stichwort': e.Stichwort,
      'Probenstatus': e.Probenstatus,
      'Datei': filenameWithoutExtension
    }
  })

  return result
}

Last change: 08/21/26

General information

Supplier evaluation

Material

Employees

Customers

Orders

Samples

PDF templates

Assets

Recipes

Reports

Report table editor

Interfaces

Kompetenzen

AI functions

Introductory phase

Query reports

Templates

Client zone (optional)

Offers

Invoices

Parameters

Calculating with parameters

Webservices

Transformationscode

Test plans / limit values / specifications

Documents control

Questions and answers

Equipment

Trainings

8D-report

Others

File management

Processes