11-10-2016 11:54 PM - edited 03-14-2019 04:45 PM
Hi
I need to set up a site simple script where a authorised person dials into a script, they are asks to enter a set of digits, this is compare to a if statement or better to a DB lookup and the acted on-same as a credit card pin look up
Question, we have ucce with cvp but we have not cvp for scripts yet so need to use icm for now but will move to cvp scripts
My thinking is as follows
use a GD app, get digits - after entering the digits- where are the collected digits kept?
2. After the get digits do I use a set variable to copy them to a call variable
3. Do a DB look up against a primary key of the digits and compare against the call variable where the digits are stored
A user enters their user Id 'abc567' which when entered via a key pad is 123567, this number is in a DB where the primary key is set,. This confirms the user
The other way is to use a simple if step
Use get digits
Copy get digits into a call variable
Use a if set to check call variable is 123567 if not do another if step against another call variable of another user 345888
So the script may use multiple if statements depending on how many authorised users we have
What is best
A DB lookup or multiple if statements
Thanks
11-14-2016 12:39 PM
Is there an ID and a pin? or just a pin?
If it's just a pin and you have
You can do a bunch of if's but better would be either a switch or an iterator.
Switch is easier but for iterator, you can google "
Let me know if you need more help, and I can run you through it.
11-14-2016 12:53 PM
Sean
Thanks for replying.
For my own knowledge I would like to do the DB lookup so I have knowledge. The actual use is only 6 users who will access the system.
We also have a UCCE system not uccx
After the user enter the digits, where are they hold, it is 'caller entered digits '
Would I use a set variable to out them in a call variable?
caller entered digits =call variable4
Then compare call variable against a primary key in a db
Also I would to get the ucce to repeat the entered digits - what microapp do I use?
Thanks
11-14-2016 01:00 PM
Sorry, but I
If it's 6 users, it is very easy to build all of it with a simple switch step.But I completely get the wanting to learn
To get the digits, you can use get digit string and attach results to a string, all in one step. You can then compare that string however you want.
11-14-2016 01:30 PM
Also I would to get the ucce to repeat the entered digits - what microapp do I use?
I missed this. Do you want the system to repeat back the numbers to the user?
You can do a create generated prompt step
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide