cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1119
Views
5
Helpful
6
Replies

ICM script

luai
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

6 Replies 6

lpezj
Level 7
Level 7

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
Hall of Fame
Hall of Fame

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

many thanks, this is very helpful, but what is the case if I want to user more than one prefix in if statement?

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

many thanks,it works fine but not with CLID I used IF node, with CLID it doesnot work fine.

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

david