- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 05:50 AM
Hello all,
I have the following trouble:
When an agent changes the state of an incident to "On Hold" and sets the on hold reason as "Awaiting Caller", then the incident's state is saved as In Progress, as shown below. However, I want the state to be saved as "On hold".
Any ideas and suggestions on how to make it work, are welcomed and much appreciated.
Thank you in advance.
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 05:59 AM
You can write a onbefore update BR on incident table
Conditions
State changes to onhold
and reason is awaiting caller
Script
current.state=2;//put onhold value
Kindy mark the comment as a correct answer and helpful if it helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 05:59 AM
You can write a onbefore update BR on incident table
Conditions
State changes to onhold
and reason is awaiting caller
Script
current.state=2;//put onhold value
Kindy mark the comment as a correct answer and helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 06:08 AM
Hi Student,
Please check the existing code which is performing this i.e. changing the On Hold to In Progress
You can make changes in the same script
OR
create before update BR on incident table
Condition: On hold Reason [IS] Awaiting Caller AND State [CHANGES TO] On Hold
Script:
current.state = '4'; // give here the choice value for On Hold
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 06:27 AM
Hi,
Found a similar thread, check this thread it will help you
If my answer helped you in any way, mark answer as helpful and correct.
Thanks and regards,
Megha