Check system property value based on another property

Jake Adams
Tera Contributor

Hi Team,

 

I have two system properties (let's says A and B) under email properties

 

A (true|false)

B (Sting)

 

When the property A is changed to true, I need to check the value of property B and if the value is empty the system should not allow me to save the email properties.

 

In simple words if Property A is True then property B must be mandatory. Is it possible to do it?

1 REPLY 1

Cuong Phan
Kilo Sage

Hi Jake,

You can create a business rule running on table "sys_properties" with condition only matches the property you want. Then in the script you can check the value and prevent updating if that is not valid.

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Cuong Phan

Senior Consultant.



Regards,
Cuong Phan
ServiceNow Technical Lead