AnsweredAssumed Answered

How to get tags of my document

Question asked by imanez1 on Apr 23, 2019
Latest reply on Apr 24, 2019 by francesco.fornasari

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);

Outcomes