I am trying to do the following in the Destination Node and it does not like the syntax. I have the Destination set to Database and this is what I put in my "Update Stmnt:" window. What is the proper way of doing this?
//Declare the Variables
var ApptNum = message.getNode('SCH-1');
var QueryResult = '';
//Update Appoitment to Confirmed
QueryResult = qie.doQuery(
"gCPS DB",
"Update a \n" +
"Set a.Status = 'Confirmed via Text' \n" +
"From Appointments a \n" +
"Where a.AppointmentsId = "+ApptNum+" \n")