Skip to main content

system.kanoa.order.addProductionOrderSource(orderSourceInfo, userId)

Adds a new work order source


Parameters

orderSourceInfo Dictionary

- enabledBoolean
- workOrderSourceNameString

userId Integer:Id of the user executing the function


Returns

workOrderSourceId Integer
message String None if success


Example

orderSourceInfo = {'workOrderSourceName': 'SAP', 'enabled': True}
userId = 1
workOrderSourceId, msg = system.kanoa.order.addProductionOrderSource(orderSourceInfo, userId)