- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 02:13 PM
This has been resolved
I included the script code and the HOW-To on my other post: https://community.servicenow.com/community?id=community_question&sys_id=3dc2d263dba384d4feb1a851ca96...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am currently setting up Agent chat for Agent Workspace in Madrid and there's a known bug that's been fixed in New York for it where a user will be stuck indefinitely in the chat queue if every agent times out and/or rejects the chat request. Once that happens, the user will be kept in the "Queued" state with no agents capable of accepting the chat request anymore.
I'm setting up a business rule that checks when the state is "Queued" and when the "State Changed On" (Date/Time) field is more than 30 seconds, however, it doesn't seem to be working well.
The current process of chat assignment is that when an agent times out and the chat transfers to another agent, the state of the work item goes from "Pending Accept" > "Queued" > "Pending Accept" so I NEED to check that the state is "Queued" for more than 30 seconds which means the user is stuck in an invisible queue.
My question is basically, how can I make it so that after the state changes to Queued, it would wait 30 seconds before doing anything, then check for "state changed on" and see if its been over 30 seconds that the state is "Queued" then perform the action. Basically I need the business rule to launch IF AND ONLY IF State = Queued for over 30 seconds based on the time on "State Changed On"
I tried using every condition for Date/Time to no avail, and even tried using gs.sleep() which just slowed down the queue transfer system because the state changes to "Queued" before every transfer.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 02:48 PM
Can you generate an event that is processed after 30 seconds?
Vinod Kumar Kachineni
Community Rising Star 2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 02:29 PM
This might be easier to handle in a Flow or Workflow on that table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 11:00 PM
So while this does work with Flow Designer, there's a huge delay and sometimes it works and sometimes it doesn't. I solved it by creating an event and a script action with it as suggested by the other user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 02:48 PM
Can you generate an event that is processed after 30 seconds?
Vinod Kumar Kachineni
Community Rising Star 2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 02:54 PM
The event would do another check on whether or not the state is set to Queued?