i have exported this
[
{
"id": "56e4542743885219",
"type": "catch",
"z": "22a49c25aa680a2f",
"name": "",
"scope": null,
"uncaught": false,
"x": 240,
"y": 420,
"wires": [
[
"096d34efa47f9658"
]
]
},
{
"id": "096d34efa47f9658",
"type": "http response",
"z": "22a49c25aa680a2f",
"name": "Error500",
"statusCode": "500",
"headers": {},
"x": 580,
"y": 420,
"wires": []
},
{
"id": "02f099dd49c21171",
"type": "http in",
"z": "22a49c25aa680a2f",
"name": "",
"url": "/api/RunQuery",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 270,
"y": 240,
"wires": [
[
"f080e9e71a0a2bd9"
]
]
},
{
"id": "f080e9e71a0a2bd9",
"type": "function",
"z": "22a49c25aa680a2f",
"name": "checkIdRow",
"func": "if (msg.payload.idRow != undefined) {\n return msg;\n}\nelse {\n msg.payload = \"Cannot process file; missing parameter idRow.\";\n throw Error(\"Cannot process file; missing parameter idRow.\");\n}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 570,
"y": 240,
"wires": [
[
"8fbf35bd49e8cfbc"
]
]
},
{
"id": "8fbf35bd49e8cfbc",
"type": "MSSQL",
"z": "22a49c25aa680a2f",
"mssqlCN": "d49dd1a5093ffad1",
"name": "",
"outField": "payload",
"returnType": 0,
"throwErrors": 1,
"query": "SELECT * FROM tblABC WHERE id = @idRow",
"modeOpt": "queryMode",
"modeOptType": "query",
"queryOpt": "payload",
"queryOptType": "editor",
"paramsOpt": "queryParams",
"paramsOptType": "none",
"rows": "rows",
"rowsType": "msg",
"parseMustache": true,
"params": [],
"x": 840,
"y": 240,
"wires": [
[
"62af80a41557a748"
]
]
},
{
"id": "62af80a41557a748",
"type": "function",
"z": "22a49c25aa680a2f",
"name": "extract",
"func": "for (var item of msg.payload) {\n item.idRow =item.idRow[0];\n item.BNC =item.BNC[0];\n item.move =item.move[0];\n item.task =item.task[0];\n}\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1110,
"y": 240,
"wires": [
[
"2fd7ddf177651700",
"22f612c98c60113c"
]
]
},
{
"id": "2fd7ddf177651700",
"type": "http response",
"z": "22a49c25aa680a2f",
"name": "Response",
"statusCode": "200",
"headers": {},
"x": 1320,
"y": 240,
"wires": []
},
{
"id": "22f612c98c60113c",
"type": "debug",
"z": "22a49c25aa680a2f",
"name": "DebugCallAPI",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1340,
"y": 340,
"wires": []
},
{
"id": "d49dd1a5093ffad1",
"type": "MSSQL-CN",
"tdsVersion": "7_4",
"name": "SSELocal",
"server": "localhost",
"port": "1433",
"encyption": true,
"trustServerCertificate": true,
"database": "",
"useUTC": true,
"connectTimeout": "15000",
"requestTimeout": "15000",
"cancelTimeout": "5000",
"pool": "5",
"parseJSON": false,
"enableArithAbort": true,
"readOnlyIntent": false
}
]