cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1236
Views
5
Helpful
1
Replies

ICM custom function

Hi,

I am using ICM vestion 9.0. I have a requirement to route calls depending on keyword from sentense. Say for example system retunrs a sentense "I need information on foreign exchange" and I am saving the data in PV1. Now if the sentense has a word "foreign" I need to give different priority. So far I could not find any icm built-in function through which I can achieve this. I decided to build a custom function and I never develop custom function before so need help on building a custom function.

Please let me know if I build the custom function using below expression will it work. Here string1 is the sentense which I will get from PV1 and string2 is the keyword

Name = SearchFunction(string1,string2)

Parameters =  2

Function =     String[] Sentence = %1%.split();

                    for(String word: sentence)

                    {

                        if(word.equals(%2%))

                            return ture;

                    }

                    return false;

Thanks,

Ashfaque.

1 Reply 1

Hi,

I think I can achieve the same by using below formula

(find("Foreign","PV1")>0

Thanks,

Ashfaque.