Skip to main content

system.kanoa.asset.linkAssetStates

Requires kanoaOPS license

Description

Links a list of assetIds with a list of stateId.

Syntax

linkAssetStates(assetIdList, stateIdList, userId, stateCodeList=[])

Parameters:
  • assetIdList (list): List of assetId's
  • stateIdList (list): List of stateIds
  • userId (int): User ID
  • stateCodeList (list): A list of stateCodes to be used. Can be an empty list

  • Returns:
  • # of records created (int)
  • Code Examples

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