11-11-2008 02:05 AM - edited 03-14-2019 03:14 AM
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?
Solved! Go to Solution.
11-12-2008 06:14 AM
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
11-11-2008 02:14 AM
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
11-11-2008 11:42 AM
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
11-11-2008 10:32 PM
many thanks, this is very helpful, but what is the case if I want to user more than one prefix in if statement?
11-12-2008 06:14 AM
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
11-12-2008 10:54 PM
many thanks,it works fine but not with CLID I used IF node, with CLID it doesnot work fine.
11-12-2008 11:00 PM
Some calls will show up with no CLID and thus break your logic. Try having some logic which addresses where calling line id = "".
david
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: