system.kanoa.asset.addAssetGroup(assetGroupName, userId)
Adds a new asset group. If the asset group already exists, it returns the assetGroupId
Parameters
assetGroupName String: Name of the asset group to add
userId Integer: Id of user executing the function
Returns
assetGroupId Integer
Example
groupName = 'Group1'
userId = 5
assetGroupId = system.kanoa.asset.addAssetGroup(groupName, userId)