Hi All,
I am currently working on sending notifications to Microsoft Teams using the exec node. I have configured the node accordingly, and since we are using a proxy, I have already taken care of the proxy settings.
However, I am unsure how to correctly pass the output of the Queue Release into the flow.
Could you kindly advise on how I should handle this part of the configuration??
The same curl command works just fine via OS cmdline.
[
{
"id": "62438d3460737f88",
"type": "exec",
"z": "bdf6dc5bd7068a5c",
"**command": "curl -X POST -H \"Content-Type: application/json\" -d '{\"text\": \"Test message from curl\"}' https://XYZZ.webhook.office.com/webhookb2/XYZ**",
**"addpay": "payload",**
** "append": "-x http_proxy=http://XYZ/",**
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "curl",
"x": 1170,
"y": 500,
"wires": [
[],
[],
[]
]
}
]
In theory, a couple of functions should feed data into the HTTP Request node.
As an example, I am currently adding one of these functions JSON output.
[
{
"id": "3a6411517fef5b73",
"type": "function",
"z": "bdf6dc5bd7068a5c",
"name": "Queue Release",
"func": "\nmsg.payload = new Date().toISOString() + " - " + msg.filename + " file was released from the queue for processing";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 60,
"wires": [
[
"494daa74b0674a92"
]
]
}
]