Script Task Help
So I am terrible at writing script task since I've had no coding experience, so I am wondering how to add an attribute during the creation of an asset to ensure it is provided on the asset page. I've tried using the attributeApi.addAttribute Request Builder but I must be doing something one.
Christy Harting
Posted 1 year ago · Edited 1 year ago·Last reply 1 year ago
1 comment
Christy Harting
OP1 year ago · Editeddef addAttributeToAsset(assetUuid, attributeValue, attributeTypeUuid) { if (attributeValue == null) { return } attributeApi.addAttribute( AddAttributeRequest.builder() .assetId(assetUuid) .typeId(string2Uuid(attributeTypeUuid)) .value(attributeValue.toString()) .build() ) }