Hi everyone,
I want to Send Message to microsoft team group via script.
help me please.
I've never used it before, but it seems the Microsoft Graph API exposes some functions to interact with various MS 365 products, including Teams.
This endpoint would allow you to send a message in a specific team and channel:
POST /teams/{team-id}/channels/{channel-id}/messages
Check out more documentation on it here.
Using the httpClient
or the other system.net
tools built into Ignition's scripting library, it seems like it shouldn't be to much trouble to get this functioning.
Again, not something I have done before, so I don't know what goes into getting set up with the MS Graph API.
There's a free project on the Ignition Exchange that will let you send messages from Ignition to Teams.
I'm not sure if this meets your needs but each Teams channel should have an associated email address. You can post to the channel by sending an email to that address.
You can find the channel email address by clicking the ellipsis next to the channel and then selecting "Get email address".
This isn't as flexible as the Graph API but it is much simpler.
Hi KathyApplebaum
If I use API, is it enough to add 1 web development module?
You don't need any extra module to reach out to an API elsewhere. system.net.httpClient()
is part of Ignition's base platform.
Hi @pturmel
do you have example script for sent to chat group Microsoft team?
Nope. I avoid Microsoft like the plague. (It is a plague.) You should study the resource Kathy linked.
Thank you for support.