Incident automatic Change State to On Hold whenever agent reply

Yee Man Chun
Tera Expert

Hi Guys,

 

Am new in ServiceNow Implementation. I realize that whenever argent added the additional comments, the state need to be manually change to On Hold ,On hold reason: awaiting caller.

 

YeeManChun_0-1665221788400.png

 

I have created a business rule as below: 

When 

additional comments :changes
State is New or In Progress
Assignment Group: Servicedesk Team

Actions

Set field value State to "On hold
On Hold reason :Awaiting Caller

 

YeeManChun_1-1665222153570.png

 

YeeManChun_3-1665222290734.png

 

Thing to be achieved: Whenever Argent add comments, the State will automatic change to State On Hold , Reason  Awaiting Caller.

 

Thank you in Advance ! 

 

1 ACCEPTED SOLUTION

Pavankumar_1
Mega Patron

Hi @Yee Man Chun ,

 

Use create after business rule and check Update on When to run Tab. use below script

Script:

(function executeRule(current, previous /*null when async*/) {
	current.state='3'; //on hold backend value out of the Box On hold state value is 3
	current.hold_reason='1'; //hold reason backned value. out of the Box Awaiting Caller hold resoan is 3
	current.update();
})(current, previous);

Refer below screenshots.

 Screenshot (188).png

Screenshot (189).png

 

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

View solution in original post

16 REPLIES 16

This is the output after i reply from the incident 

YeeManChun_5-1665298693690.png

 

AEterni
Mega Guru

Hi,

 

here is the BR we use.

 

AlessandroEter_0-1665226347333.pngAlessandroEter_1-1665226369144.png

 

Saurav11
Kilo Patron
Kilo Patron

hello,

 

Your logic is correct waht you have done in your BR. You have just missed one thing you need to check the advance checkbox 

 

Saurav11_0-1665226732466.png

 

And then  select the when as after and check the  insert and update checkbox

 

Saurav11_1-1665226846200.png

 

 

Please mark answer correct/helpful based on Impact.

 

Hi ,

 

Thanks for trying to help. However it's still not working.

Hello,

 

Change it to before update and try 

 

Please mark answer correct/helpful based on Impact.