I want to get the Tags of my document (in javascript) so that i can execute a script:
example: If my document is tagged "test" execute the rest of my script .
I know it is possible via the rules of the folder, but i want it via javascript like the case with categories:
var cats = document.properties["cm:categories"];
for (var i = 0; i < cats.length ; i++){
var catName = cats[i].name;
}I tried with this but it's not working:
List<String> tags = taggingService.getTags(document);
logger.log(tags);