Skip to main content

system.kanoa.asset.linkAssetStates

This function requires KanoaOPS module

Description

Links a list of assetIds with a list of stateId (kanoaOPS).

Syntax

linkAssetStates(assetIdList, stateIdList, userId, stateCodeList=[])
  • Parameters
      assetIdList (list) - List of assetId's
      stateIdList (list) - List of stateIds
      stateCodeList (list) - A list of stateCodes to be used. Can be an empty list
      userId (int) - User ID
  • Returns
      # of records created (int)
  • Code Examples

    # Example Usage:
    system.kanoa.asset.linkAssetStates([1, 2, 3], [101, 102, 103], 456, ['Code1', 'Code2', 'Code3'])
    ``