Business rule to check if field is Empty

Hemachithra
Tera Contributor

Hi ,

I have to trigger business rule whenever a field value changes to Empty .How can I achieve this in the  Filter condition of When to run filter section in Business rule.

Please help!.

 

1 ACCEPTED SOLUTION

Pavankumar_1
Mega Patron

Hi,

You can use the condition as below. ex: field is short description

find_real_file.png

 

Hope it helps!!

Please Mark Correct/helpful, if applicable, Thanks!! 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

View solution in original post

4 REPLIES 4

Pavankumar_1
Mega Patron

Hi,

You can use the condition as below. ex: field is short description

find_real_file.png

 

Hope it helps!!

Please Mark Correct/helpful, if applicable, Thanks!! 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Hi Pavan ,

So If I keep this filter condition as per your example. Does it mean short description changes to empty? 

Ankur Bawiskar
Tera Patron

Hi,

you can do this in advanced condition

current.fieldName.changes() && current.fieldName == ''

Regards
Ankur

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

keshavgowda
Tera Contributor

Hi,

You can use this advanced condition,

 

    if (current.field_name.nil){
    gs.addErrorMessage("please update your field value");
 }
 
regards,
KeshavGowda