I have a script attached that I am trying to check for agents logged into the Reception CSQ if there is at least one agent logged into that CSQ then it should then check to make sure that there are no more then one call queued in the Reception CSQ if more than one call is holding in the reception queue then it should send it down a call subflow to another script. Currently, this does not seem to be returning the expected behaviour and it always goes to the Queue Call step no matter if anyone is signed in or not.
I think you have your If step backward. You currently have:
This reads as follows:
IF agentsLoggedIn is one or less, then queue the call.
IF contactsWaiting is one or less, then queue the call.
ELSE call subflow
Based on your description above I suspect you want this:
Message was edited by: Jonathan Schulenberg to correct recept_queued_calls step to < 2
Thanks, I made the changes as you suggested but when I do a reactive debug I get the correct value for the number of agents logged in but whether or not it is 1 or Zero it always goes down the false path. If there is one agent in a ready state (which there is) then it should deliver the call to the Reception CSQ instead of the call subflow
Probably because your Get Reporting Statistic step isn't saving the result to the logged_in_agents variable that the If step following it is comparing against.
Alternate-click the Get Reporting Statistics step, choose properties and look at the fields. Then, change your if step to evaluate that variable (preferred); or, change the statistic step to save the value into logged_in_agents.
Thanks, that fixes my if / then with the agents logged in. If you could premit me one more question. Will using the Get Reporting Statistic Contacts Waiting and looking at the variable CSQ string which is a parameter for my Reception CSQ defined in UCCX be able to determine how many calls are queued for that particular queue and then redirect them?
The step will get the data point but it's up to you what to do with it (e.g. redirecting a call is the Call Redirect step). This is just a GUI-based programming (Java beans under the hood). It will do only what you program it to.