Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

What to put under condition field in BR

SnowUserDev
Tera Contributor

Hi Community,

 

I want to know as a best practice what should we put under condition field for a Business Rule. As we cannot keep any BR without a condition.

2 ACCEPTED SOLUTIONS

Danish Bhairag2
Tera Sage

Hi @SnowUserDev ,

 

In a scenario where u specifically don't have condition to put to u can keep something like

 

current.field_name != ''

 

Where field name u can select any field name depending upon the table which u have selected.

 

Thanks,

Danish

 

View solution in original post

Hi @SnowUserDev ,

 

U can go with current.sys_class_name != ''

 

Thanks,

Danish

 

View solution in original post

3 REPLIES 3

Danish Bhairag2
Tera Sage

Hi @SnowUserDev ,

 

In a scenario where u specifically don't have condition to put to u can keep something like

 

current.field_name != ''

 

Where field name u can select any field name depending upon the table which u have selected.

 

Thanks,

Danish

 

Hey @Danish Bhairag2 ,

 

I have quite a lot of BR's without any condition and belonging to different tables and scope. 

Can u recommend any field which can be common in all

 

 

Hi @SnowUserDev ,

 

U can go with current.sys_class_name != ''

 

Thanks,

Danish