- Joined
- Aug 5, 2010
- Messages
- 63
- Reaction score
- 1
I am wondering if someone can save me a bit of time building my project with a sample project or some specific instructions.
We are trying to build the following functionality:
When a customer calls use the caller id to do a select statement
select orderid from orders where @callerid = phone
If more than one result we read back the last 4 digits of the phone number or have them key in the last 4 digits of order number
then we would select orderid from orders where @callerid = phone and LEFT(orderid, 4) = @userinput
If caller id does not match we ask for user input to put in phone number or orderid into the system without dashes and run the following query
select orderid from orders where @userinput = phone or @userinput = orderid
Provided we have an orderid from query I want out put this in a post api and then post a second query on the phone answering agents computer using an api to get the order details so that the user can have the order details available as they start the call.
Database is SQL 2008 R2
System is V14 SP2 and VAD is V14
Any help would be greatly appreciated.
Thanks
Jim
We are trying to build the following functionality:
When a customer calls use the caller id to do a select statement
select orderid from orders where @callerid = phone
If more than one result we read back the last 4 digits of the phone number or have them key in the last 4 digits of order number
then we would select orderid from orders where @callerid = phone and LEFT(orderid, 4) = @userinput
If caller id does not match we ask for user input to put in phone number or orderid into the system without dashes and run the following query
select orderid from orders where @userinput = phone or @userinput = orderid
Provided we have an orderid from query I want out put this in a post api and then post a second query on the phone answering agents computer using an api to get the order details so that the user can have the order details available as they start the call.
Database is SQL 2008 R2
System is V14 SP2 and VAD is V14
Any help would be greatly appreciated.
Thanks
Jim