Skip to main content
8-Gravel
August 17, 2018
Solved

How to simply disable a trigger?

  • August 17, 2018
  • 1 reply
  • 3407 views

I have a rule based trigger that resets a field on a defined rule.

 

How do I disable the trigger without reconfiguring the trigger type or even deleting it?

 

Best answer by chirag_kpit

Hi Elmar,

 

Yes, this trigger is getting executed because it has some value to assign based on the rule.

Pre/Post event are only required to execute the script.

So if you want to disable it you can move complete rule to 

And

        .......Existing Rule................

        ID==0

 

Hope this will help you.

 

Chirag Agarwal

      

1 reply

1-Visitor
August 17, 2018

Hi Elmer,

 

You can disable a rule based by simply unchecking the pre/post event(only in case if there is no assignment).

Else you can add one more condition in the rule i.e. "ID=0"

 

Regards,

Chirag Agarwal

8-Gravel
August 17, 2018

For the trigger the pre/post event checkbox was not checked but the trigger still did it's job!

Maybe this was because it has no js script that it should run but only a "Rule" that "Assigns" a certain value to a field?

 

To disable it I now reconfigured it to type schedule as I learned from the support forum: https://www.ptc.com/en/support/article?n=CS148391&language=en&posno=1&q=How%20to%20disable%20a%20trigger&source=search

 

This did not feel right to me so I wanted to know if there is a better solution.

1-Visitor
August 17, 2018

Hi Elmar,

 

Yes, this trigger is getting executed because it has some value to assign based on the rule.

Pre/Post event are only required to execute the script.

So if you want to disable it you can move complete rule to 

And

        .......Existing Rule................

        ID==0

 

Hope this will help you.

 

Chirag Agarwal