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.

When HR Task is Awaiting Information, Change the Parent HR Case state to 'Suspended'

Kushi
Tera Contributor

Hello,

Question: When HR Task is Awaiting Information, Change the Parent HR Case state to 'Suspended'.

I have written a business rule for the above on HR Task Table 'AFTER UPDTAE' when 'STATE IS AWAITING INFORMATION'.

Kushi_0-1723784819975.png

can anyone help if there's anything wrong with the script

3 REPLIES 3

Mame Diarra
Kilo Guru

@Kushi 

Line 7 should be : if(current.state =='5')

Thanks, i tried but its not working

If you have already added the AWAITING INFORMATION on the condition, you don't need it on the script; you can have something more simple (see screenshots)