cancel
Showing results for 
Search instead for 
Did you mean: 

Rule/script unwanted looping

tomoconnell
Champ in-the-making
Champ in-the-making
Im using a rule to run a script when a document is moved or created in a directory.

The script it runs is copying a folder template to said directory. This is then re-triggering the rule.

How can this be avoided?
2 REPLIES 2

yogeshpj
Star Contributor
Star Contributor
I suppose you have configured the in bound rule.To avoid unwanted looping ,your script should not be executed for copied content.
Copied content has specific aspect ,for which you can add condition in your script so that your script will not execute for copied content.

tomoconnell
Champ in-the-making
Champ in-the-making
Thank you for this.

Solved using

if (!document.hasAspect("cm:copiedfrom")) {

}
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.