this is the debug
And this is the debug whit the response of the SQL node with de script on the query editor
and this is the clipboard of this nodes.
[
{
"id": "8a7a4f463020edb6",
"type": "MSSQL",
"z": "4ab6a4fb7cf2f03a",
"mssqlCN": "2b06f502f12b11a7",
"name": "",
"outField": "payload",
"returnType": "1",
"throwErrors": "0",
"query": "select * from alc.ActivityType where ActivityTypeName = @type",
"modeOpt": "",
"modeOptType": "query",
"queryOpt": "",
"queryOptType": "editor",
"paramsOpt": "",
"paramsOptType": "editor",
"rows": "rows",
"rowsType": "msg",
"parseMustache": false,
"params": [
{
"output": false,
"name": "type",
"type": "VarChar",
"valueType": "msg",
"value": "filterValue",
"options": {
"nullable": true,
"primary": false,
"identity": false,
"readOnly": false
}
}
],
"x": 820,
"y": 1900,
"wires": [
[
"516b732d290c57d9"
]
]
},
{
"id": "516b732d290c57d9",
"type": "debug",
"z": "4ab6a4fb7cf2f03a",
"name": "debug 456",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1030,
"y": 1900,
"wires": []
},
{
"id": "2b739a5e48d3eae0",
"type": "inject",
"z": "4ab6a4fb7cf2f03a",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 480,
"y": 1900,
"wires": [
[
"16702c357e386af0"
]
]
},
{
"id": "16702c357e386af0",
"type": "function",
"z": "4ab6a4fb7cf2f03a",
"name": "function 73",
"func": "//msg.query = \"select * from alc.ActivityType where ActivityTypeName = 'intervencion\\Reparación\\Cañería AG\\.\\PVC\\90 mm. (Trabajo)'\"\n//msg.topic = \"select * from alc.ActivityType where ActivityTypeName = '@filterValue'\"\nmsg.filterValue = 'intervencion\\Reparación\\Cañería AG\\.\\PVC\\90 mm. (Trabajo)'\n\n\nreturn msg",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 650,
"y": 1900,
"wires": [
[
"8a7a4f463020edb6"
]
]
},
{
"id": "2b06f502f12b11a7",
"type": "MSSQL-CN",
"tdsVersion": "7_4",
"name": "",
"server": "10.40.2.8",
"port": "13341",
"encyption": true,
"trustServerCertificate": true,
"database": "WLM",
"useUTC": true,
"connectTimeout": "15000",
"requestTimeout": "15000",
"cancelTimeout": "5000",
"pool": "5",
"parseJSON": false,
"enableArithAbort": true,
"readOnlyIntent": false
}
]