Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global user variable concatenation

Status
Not open for further replies.

Banexx

Programmer
Jun 23, 2005
21
NL
Hi

I have many uservariable called uservariablecampain54xx.Those user variables are set to 6 or 7 by an administrative scripte.
I want to create a dynamic label which will be based on the dial number and the uservariable.The formula is

concatenate("70",(mid(Call.DialedNumberString,3,2)),"DTMF",ValidValue(concatenate("Global.userOpenCampagne54",(mid(Call.DialedNumberString,3,2))),8))

But when I dial the 5101 the label i get is

7001DTMFuservariable5401 or 7002DTMFuservariable5402

I couldn't get the formulas to put the value of the user variable.

The all thing is based on the DTMF that i'll get on the label 70xxDTMFx.
Could someone tell me where the problem is and mostly how to solve it.
I'm running ICM 5 SR7

In advance thank for your help
 
It looks like you have Quotes around the 'Global.userOpenCampagne54', try this:

concatenate("70",mid(Call.DialedNumberString,3,2),"DTMF",ValidValue(concatenate(Global.userOpenCampagne54,mid(Call.DialedNumberString,3,2)),8))

Good luck, if this doesn't work, can you post what is in each variable so we can break it down further.

Barry


 
It does'nt work without the quote.
Here's what the variable look like
UservariableCampain5401
UservariableCampain5402
UservariableCampain5403
UservariableCampain5404
.
.
.
UservariableCampain5449

So what i would like to do in the label value is to concatenate the beginning of the variable name with the dial number 2 last digits.
So that i won't have to use the route select node.

The goal is the have a dynamic label which looks like 7001DTMF1 for DN 5401

The variable (UservariableCampain54xx) are set the 6 or 7 by an admin script.


 
Hmmm,

Ok, I think I know what you are trying to do.

In the ICM, you cannot build the name of your variable name to reference later. You can only refer to each value of a defined variable.

Can you explain your entire process and see if there is a way to build your dynamic labels differently?


Barry
 
OK,
Here is the issue. Our marketing service plans to 2 kind if campains . The first one will be some offers which are propose to most of our customers and the other offer will only be offered to some customer. This means that only some of our 0800 numbers will get the announcement for a period of time and after that period those 0800 number won't hear the message again but a standard announcement.
I thought about using administrative script to make the whole process automatic. The script will set variable to 6 or 7 during period ,that we will define in a condition node ,and those values will be used as DTMF in an dynamic label which is sent to an AVAYA PBX. The Avaya will then used the dtmf to play or not the special offer announcement or the standard one.
A solution will be to used the route select node but as i have a lots of 0800 number, it won't be easy to handle.
The dynamic number seem to be the best solution.

Here is the Story.
 
Hello, sorry it took a while to get back to you!

There sounds like there are a couple of options. You could use route selects, and then choose the Allow Connection for Each target option. Then at the end of each target, you can put your label/dynamic label node. This seems to bypass the translation route, and routes through the label instead.

For your user variables, once you fill them with a particular string of numbers, you may need to use the Value() function to convert them into a numeric (if they are strings).

If your desire is to translation route these calls, then you can also look at setting up multiple routes under each service. These routes can point to your difference campaign numbers, then in your Translation Routes, just use your consider if's to decide which route to take.

Good luck!
Barry



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top