I've been struggling with a little script that should be easy to implement: I've added a rule on a folder that runs a script. The script should get the folderlocation of the uploaded or incoming document and add the location as a tag:
var url = document.properties.locale.nodeRef;
It should be something like this, but this doesn't work. how should I do it?
Is it possible to get the folder-structure of the file as a tag?