Hi all,
I need a rule for rename all docs that the name contain CPF to the space.name + "CPF".
for this I created the following script:
document.name = space.name + "-CPF";
document.save();
all worked well!
but I need to do this for a large number of folders and subfolders, how i make to apply this rule for all subfolders ?
I tried to apply this rule on the main folder and selected 'Rule applies to subfolders' but has returned the name of main folder, rather than the name of space where the document was inserted.