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
1 comment
Christy Harting
OPdef addAttributeToAsset(assetUuid, attributeValue, attributeTypeUuid) { if (attributeValue == null) { return } attributeApi.addAttribute( AddAttributeRequest.builder() .assetId(assetUuid) .typeId(string2Uuid(attributeTypeUuid)) .value(attributeValue.toString()) .build() ) }