Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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

Siddhesh Gawade
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
Mega 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.