Skip to main content

system.kanoa.quality.sheet.importSheets(exportInfo, options)

Imports check sheets exported by exportSheets, in one transaction (a failure imports nothing). Folders, item sets, data types, units and attributes that don't exist are created; assets, items, item classes, check item types, pick lists, trigger types, modes and shifts are found by name or path, and anything missing is left out and listed in errorLog. A sheet whose name is taken in its folder gets a timestamp added.


Parameters​

exportInfo Dictionary: The export file (a dict with exportType 'qualityCheckSheetData' and data), the list of records exportSheets returns, one record, or any of these as a JSON string

options Dictionary

- userIdIntegerRequired. The user the rows are created by

Returns​

Dictionary: passed (Boolean), message (String), chkShtIds (List of Integers: the new check sheets), errorLog (List of Strings: what was left out)


Example​

exportInfo = {}
options = {'userId': 5}
result = system.kanoa.quality.sheet.importSheets(exportInfo, options)