Skip to main content

system.kanoa.asset.importAsset

This function requires KanoaOPS module

Description

Imports all config info includes child assets, links to modes, states, items and attributes (kanoaOPS).

Syntax

importAsset(exportInfo, userId, createModes, createStates, createItems)
  • Parameters
      exportInfo (dict) - asset dictionary to be imported
      userId (int)
      createModes (bool) - should the modes be created?
      createStates (bool) - should the states be created?
      createItems (bool) - should the items be created?
  • Returns
      success (bit)
      msg (string)
  • Code Examples

    # Example Usage:

    export_data = dict
    userId = 55
    createModes = 'True'
    createStates = 'True'
    createItems = 'False'
    status = system.kanoa.asset.importAsset(export_data, userId, createModes, createStates, createItems)