Queue waiting number in Virtual Agent

sarabjeet
Giga Expert

Hi,

I want to know is there any way in VA so we can define the queue waiting number while our chat is routed to Live Agent.

For Example- If have choose option to contact to live agent and all agents are busy and there are 3 other people waiting for the agents. So my queue waiting number should be 4 and visible to me.

1 ACCEPTED SOLUTION

Hi Sarabjeet,

I tried the same thing and it worked for me. But can you try this script in backgrounds and see the result. Also manually check in chat_queue_entry table and see the logs in the debug.

var chq = new GlideAggregate('chat_queue_entry');
chq.addQuery('state=1');
chq.addAggregate('count');
chq.query();
if(chq.next())
gs.info( 'Your wait position is: ' + (parseInt(chq.getAggregate('count'))+1));

 

find_real_file.png

View solution in original post

16 REPLIES 16

Nice one!

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thank you Mark!

Hi Murali,

i tried the same way you told me but its not working

find_real_file.png

Hi Sarabjeet,

I tried the same thing and it worked for me. But can you try this script in backgrounds and see the result. Also manually check in chat_queue_entry table and see the logs in the debug.

var chq = new GlideAggregate('chat_queue_entry');
chq.addQuery('state=1');
chq.addAggregate('count');
chq.query();
if(chq.next())
gs.info( 'Your wait position is: ' + (parseInt(chq.getAggregate('count'))+1));

 

find_real_file.png

Thanks  a lot Murali for all the help!!!