Jump to content

call routing nach Pin aus Datenbank


steveguerrero

Recommended Posts

Hi, ich versuche ein Vbscript zu schreiben.

Ziel des Codes ist interne Anrufer nach erfolgreicher Pineingabe durchzustellen.

Die Pins befinden sich in einer Remotedatenbank.  

 

 

Function TicketNummerEingabe( sIncidentID )

Dim bReturn
bReturn = false

Dim sDsn
sDsn = "Driver={SQL Server};Server=WF-CL4-SQL2\WFCL4DSQL2;" &_
"Database=PolarHelpDesk;uid=*****;pwd=*****"

' open connection to database
Dim db
Set db = CreateObject("ADODB.Connection")
db.Open sDsn

' open recordset
Dim sSQL
Dim rs
sSQL = "select IncidentID FROM PolarHelpDesk.dbo.Incident"

Set rs = CreateObject("ADODB.Recordset")
  rs.Open sSQL, db,adOpenDynamic, adLockOptimistic, adCmdUnknown
  bReturn = not rs.EOF

  rs.Close
  Set rs = Nothing

  db.Close
  Set db = Nothing


TicketNummerEingabe = bReturn

End Function

 

 

Das sind die Variablen, die ich in die Block eingefügt habe. 

Block Variable auswerten
TicketNummerEingabe ( pin_code )

 

Block DTMF-Zeichenfolge

Variable
pin_code

 

Clipboarder.2018.07.16.png

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.