Skip to main content

system.kanoa.asset.addAssetGroup

This function requires KanoaOPS module

Description

Adds a new asset group if the group doesn't already exist (kanoaOPS).

Syntax

addAssetGroup(assetGroupName, userId)
  • Parameters
      assetGroupName (string) - Name of the asset group.
      userId (int) - User ID for tracking changes.
  • Returns
      assetGroupId (int).
  • Code Examples

    # Example Usage:
    group_name = 'Group1'
    user_id = 5
    asset_group_id = system.kanoa.asset.addAssetGroup(group_name, user_id)