How to trigger a script on updating a sys_property?

Prakhar7
ServiceNow Employee
ServiceNow Employee

I am trying to implement an opt-in kind of feature. If the user updates the value of sys_property to true, a script needs to be executed.

How can this be achieved?

 

1 ACCEPTED SOLUTION

dmathur09
Kilo Sage
Kilo Sage

Hi Prakhar,

You can update the scheduled job with an if condition, checking if the value of the property is true or false. 

Regards,

Deepankar Mathur

View solution in original post

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

Hello,

You can write a after update BR on sys_property table with condition as Value changes to true and write your logic in BR script

Please mark my answer correct if it helped you

 

insightful.

dmathur09
Kilo Sage
Kilo Sage

Hi Prakhar,

You can update the scheduled job with an if condition, checking if the value of the property is true or false. 

Regards,

Deepankar Mathur

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

why not use flow designer which has zero-low code instead of after update Business rule

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader