ICM script

Answered Question

I am using IPCCE with CVP 3.1 and I want to add this condition to IF node

if the call line ID start with xxxx then ....

I mean I want the function for (start with) it is not with the built in functions in the ICM script editor?

I have this problem too.
0 votes
Correct Answer by Chris Deren about 8 years 2 weeks ago

The do the following:

1. In CLID step and use multiple prefixes for the same instance

2. Use If statment with OR (||) clause as following:

IF (left(Call.CallingLineID,3)=="123" || left(Call.CallingLineID,3)=="345")

3. Another option is uing Region node

HTH, Please rate all useful posts!

Chris

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
lpezj Tue, 11/11/2008 - 02:14

Hi,

I think that you have available functions similar to left, right or mid, in the same way as in a conventional programming language.

Take a look to it.

Hope this helps,

Juan Luis

Chris Deren Tue, 11/11/2008 - 11:42

I am assuming you are doing this logic in ICM script and not CVP Studio.

You have couple of solutions:

1. use the CLID step and use Prefix type and enter the CLID prefix

2. Use If statment as following:

left(Call.CallingLineID,3)=="123", where 3 implies you are lookin at 3 left most digits.

HTH,

Chris

Correct Answer
Chris Deren Wed, 11/12/2008 - 06:14

The do the following:

1. In CLID step and use multiple prefixes for the same instance

2. Use If statment with OR (||) clause as following:

IF (left(Call.CallingLineID,3)=="123" || left(Call.CallingLineID,3)=="345")

3. Another option is uing Region node

HTH, Please rate all useful posts!

Chris

david.macias Wed, 11/12/2008 - 23:00

Some calls will show up with no CLID and thus break your logic. Try having some logic which addresses where calling line id = "".

david

Actions

This Discussion