Validation Rule - tags
hello all,
I want to validate if an asset has atleast 5 tags assigned to it.
I was using the below rule but after a while realized "tags’ do not come under attributes. This obviously was not working.
rule {
isNotEmpty(attributes[‘Tags’]?.get(5), message: “There should be atleast 6 tags associated to the asset”)
}
Is there any way to still write the validation rule using custom validation functions? appreciate the needful.
noor
Posted 5 years ago · Edited 1 year ago·Last reply 5 years ago
1 comment
georgecheung
·5 years ago · Editedtags are not considered an attribute, and they are not apart of the asset model.
the asset model for validation scripts can be found in the documentation: https://productresources.collibra.com/docs/collibra/latest/Content/Assets/ref_asset-model.htm