×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

ICM If node

Unanswered Question
Jul 31st, 2013
User Badges:

Hello,

I am atteempting to write an ICM script that will route calls based on the incoming DN.


I have an If node using a formula to check the right most 3 digits of the string, if the 3 digits match a particular set then route the call to a particular skill group.


My issue is I am receiving an Undefined symbol error on the script editor. My formula is right (00200311, 3)


My intention is to route calls where the last 3 of the string equal 311 to a specific skill group. Have i misused the right formula?


Thanks!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Arpit Arora Wed, 07/31/2013 - 10:25
User Badges:

Hi,


Try setting the peripheral variable using formula :

Set Varibale

Call.PeripheralVariable1=substr(Call.DialedNumberString,5,3)


and then use the IF node to match a particular set to route to a skillgroup.


Hope this will help you.


Regards,

Arpit

Jameson Gagnepain Wed, 07/31/2013 - 11:08
User Badges:
  • Silver, 250 points or more
  • Community Spotlight Award,

    Member's Choice, March 2015

You're receiving the "Undefined symbol" error because 00200311 is not a string. The right(s, n) formula expects a string (s) and a number (n). You're giving it a number and a number. If you enclose the 00200311 in quotes, or reference a variable instead, it will work. Like so:


right(Call.DialedNumberString,3)


or...


right("00200311",3)


No need to go around setting variables here (unless you need to reuse the data somewhere else).


-Jameson

candese.perez Wed, 07/31/2013 - 11:11
User Badges:

Thanks Arpit and James. 

Very helpful.


If I set the PV, then how do I call it in the If node to = a particular string?


I was thinking I would say If the CPV1 = 311 route appropriately, but again I am getting Undefined symbol 311.


Message was edited by: Candese Perez

Jameson Gagnepain Wed, 07/31/2013 - 11:37
User Badges:
  • Silver, 250 points or more
  • Community Spotlight Award,

    Member's Choice, March 2015

Make sure you enclose the 311 in quotes! Same reason as putting it in quotes in that "right()" formula.


-Jameson

candese.perez Wed, 07/31/2013 - 11:40
User Badges:

Thanks Jameson, I tried that and am receiving Misplaced symbol error.


right(Call.DialedNumberString,3) = "311"

Jameson Gagnepain Wed, 07/31/2013 - 11:42
User Badges:
  • Silver, 250 points or more
  • Community Spotlight Award,

    Member's Choice, March 2015

Remove the spaces around the equals sign. It should read:


right(Call.DialedNumberString,3)="311"


-Jameson

Actions

This Discussion