08-17-2011 09:12 AM - edited 03-14-2019 08:23 AM
I'm trying to have my script recognize a specific called number and then based off that call number queue call at higher priority and send to agent. I am in the debug state right now and it's blowing by IF statement for the called number. What am I missing here?
thanks
Called Number = Get Call Contact Info
IF (called_number==1234567) then
True> Set Pri 7
False>continue to queue call lower Pri
Solved! Go to Solution.
08-17-2011 09:37 AM
are you in active or reactive debug mode? if active, you cannot pull the get call contact info step, but I suspect you would have seen that. so, I will assume you are in reactive. but I want to make sure.
I see you wrote out the script steps by hand, instead of a screenshot, or file upload, so this could easily be a typo, but your variable in the get call contact info step is:
Called Number
And your variable in the if step is:
called_number
They should be the same.
Also, your if step should have the phone number literal in double quotes:
"1234567"
And not typed out like an integer:
1234567
But again, that could be a typo, and not really how your script is built.
The logic looks good:
Get Called Number
If Called Number == Priority Number Then
Set Priority
Else
Do Nothing
So I am only left to guess at the problem....do you use wild card triggers? I.e., not 1234567, but 123XXXX?
If you are using wild card triggers, then the Called Number would be the trigger:
123XXXX
And not the actual number dialed (you need to get the Dialed Number, which is at the bottom of the list):
1234567
If that is the case, then certainly:
"123XXXX" != "1234567"
And that would route your calls to the False branch of the If step.
08-17-2011 09:37 AM
are you in active or reactive debug mode? if active, you cannot pull the get call contact info step, but I suspect you would have seen that. so, I will assume you are in reactive. but I want to make sure.
I see you wrote out the script steps by hand, instead of a screenshot, or file upload, so this could easily be a typo, but your variable in the get call contact info step is:
Called Number
And your variable in the if step is:
called_number
They should be the same.
Also, your if step should have the phone number literal in double quotes:
"1234567"
And not typed out like an integer:
1234567
But again, that could be a typo, and not really how your script is built.
The logic looks good:
Get Called Number
If Called Number == Priority Number Then
Set Priority
Else
Do Nothing
So I am only left to guess at the problem....do you use wild card triggers? I.e., not 1234567, but 123XXXX?
If you are using wild card triggers, then the Called Number would be the trigger:
123XXXX
And not the actual number dialed (you need to get the Dialed Number, which is at the bottom of the list):
1234567
If that is the case, then certainly:
"123XXXX" != "1234567"
And that would route your calls to the False branch of the If step.
08-17-2011 11:28 AM
Hi Anthony yep I figured it out I was not using the double quotes!
thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide