Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Need help to create a simple formula in icm routing script.

Hi friends

someone can help me to get better idea about ValidValue() built in function ?.can we use it like

ValidValue( ValidValue( ))  .. ?

Letme explain my exact requirement .

1 , storing external numbers to peripheral variables with the help of set node .

Peripheral vaiable 1="0001234567890"

Peripheral vaiable 2="0002234567890"

Peripheral vaiable 3="0003234567890"

2 , changing the value of 'caller enter digits' to 1-3 based on scripting logic .

3 , using peripheral variable 5 to store the peripheral variable number dynamically with the help of set node.

   concatenate("Call.PeripheralVariable",Call.CallerEnteredDigits)

4,using set node to fetch the value of correspoding peripheral variable (1-3 )

ValidValue(Call.PeripheralVariable5,"")

5,configured peripheral variable 5 in label node to route calls to corresponding external number  .

Current issue is step 4 is not working properly or need to use different formula , PV is not fetching the value stored on PV (1-3 ) , its simply showing

Peripheral vaiable 1 ,Peripheral vaiable 2,Peripheral vaiable 3.

Regards

Renni

1 ACCEPTED SOLUTION

Accepted Solutions

Need help to create a simple formula in icm routing script.

Why do you need ValidValue?

If you're having problems with the approach above, why don't you just do something a bit more straight forward?

if(call.ced="1",PV1,(if(call.ced="2",PV2,(if(call.ced="3",PV3,"CED Not valid)))))

david

2 REPLIES

Need help to create a simple formula in icm routing script.

Why do you need ValidValue?

If you're having problems with the approach above, why don't you just do something a bit more straight forward?

if(call.ced="1",PV1,(if(call.ced="2",PV2,(if(call.ced="3",PV3,"CED Not valid)))))

david

New Member

Need help to create a simple formula in icm routing script.

Thanks David , it worked fine.

236
Views
0
Helpful
2
Replies
CreatePlease to create content