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.

Business rule to check requested user is active or Inactive ??

Siddhesh Gawade
Mega Sage
Mega Sage

Hello,

I want to write a business rule to check the user in requested by field is active or inactive, if Inactive I want to add a info message " user is Inactive".

please Help !!!

 

Regards,

Siddhesh

1 REPLY 1

Saiganeshraja
Kilo Sage

I am not sure which table requested by you are referring , But use below script to check user is active or not

if(current.requested_by.active == false)

{

gs.addInfoMessage("Your Message");

}

 

Mark Correct, if it helps.