system.kanoa.quality.config.addDataType(dataTypeInfo, userId)
Adds a new check item data type. All dataTypeInfo keys are required.
Parameters
dataTypeInfo Dictionary
| - dataTypeName | String | |
| - enabled | Boolean | |
| - isNumeric | Boolean | |
| - pickListEnabled | Boolean |
userId Integer: Id of user executing the function
Returns
dataTypeId Integer
Example
dataTypeInfo = {'dataTypeName': 'Special Bool', 'enabled': True,'isNumeric': True,'pickListEnabled':True}
userId = 5
dataTypeId = system.kanoa.quality.config.addDataType(dataTypeInfo, userId)