Skip to main content

system.kanoa.asset.importAsset(exportInfo, userId, createModes, createStates, createItems)

Imports all asset configuration includes child assets, links to modes, states, items and attributes


Parameters

exportInfo Dictionary: AssetInfo generated by the system.kanoa.asset.exportAsset() function.
userId Integer: Id of user executing the function
createModes Boolean: When enabled, Creates modes if they dont exist on target system
createStates Boolean: When enabled, Creates states if they dont exist on target system
createItems Boolean: When enabled, Creates items if they dont exist on target system


Returns

status Dictionary keys are 'passed' (bool) and 'message' (string)


Example

exportAssetInfo = system.kanoa.asset.exportAssets(901)
userId = 55
createModes = 'True'
createStates = 'True'
createItems = 'False'
status = system.kanoa.asset.importAsset(exportAssetInfo, userId, createModes, createStates, createItems)