AnsweredAssumed Answered

Is it possible to detect which event triggered a folder rule?

Question asked by pedwards99 on Apr 27, 2017
Latest reply on May 2, 2017 by pedwards99

Hi there,

 

I have a rule on a folder that executes some custom javascript.

 

The rule is triggered:

"When items are created or enter this folder"

and

"When items are updated"

 

I want my script to behave slightly differently for each event.

 

Does anyone know if it is possible to detect which event triggered the script or do I need to create 2 separate rules and scripts?

 

Thanks

Paul

Outcomes