AnsweredAssumed Answered

Delete activeWorkflows attached before delating a document

Question asked by seif on Jan 12, 2017
Latest reply on Jan 13, 2017 by seif


I try to define a rule to a folder that delete all activeWorkflows attached to a document when the document it's self is deleted or deplaced. I use this script in the rule:

for(var i=0;i<document.activeWorkflows.length ;i++){

When i deplaced the document all attached woekflows are cancelled but when i try to delete this document an error occure:

Could not delete 'file_name'.

help plz.