# Sending Notification to ms-teams via Webhook

**URL:** <https://discourse.nodered.org/t/sending-notification-to-ms-teams-via-webhook/97768>\
**Category:** General\
**Tags:** http-request\
**Created:** [24 June 2025 09:49 UTC](https://discourse.nodered.org/t/sending-notification-to-ms-teams-via-webhook/97768 "2025-06-24T09:49:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![denizciftci-sec](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denizciftci-sec/32/101641_2.png) [@denizciftci-sec](https://discourse.nodered.org/u/denizciftci-sec)\
**Post date:** [24 June 2025 09:49 UTC](https://discourse.nodered.org/t/sending-notification-to-ms-teams-via-webhook/97768/1 "2025-06-24T09:49:35Z")

</div>

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.

```auto
[
    {
        "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.

```auto
[
{
"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"
]
]
}
]

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/5/651b7aa07d6e998af83f64a278d80c13e9fbe6d0.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 September 2025 09:49 UTC](https://discourse.nodered.org/t/sending-notification-to-ms-teams-via-webhook/97768/2 "2025-09-22T09:49:56Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
