![]() ![]() This cookie is set by GDPR Cookie Consent plugin. These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. If you find that you can use it to integrate with something cool / interesting, let me know in the comments □ There’s loads of different places you could put this. The messages show up immediately in Teams, there’s seemingly no delay when sending messages this way, which is good news. If all went well, you’ll see 1 returned from the call to Invoke-RestMethod. You can do the same thing using PowerShell if you want to embed message sending into something you already have. Once you’ve done that, click Finish and you’re done. You can add in Ingredients to personalise your message, such as in the example above where I’ve included the max temperature. You need the curly braces, and the quotation marks, and the ‘ “text” : ‘ bit. This is important, because if you get it wrong then the message won’t be posted. ![]() You have to use this format for the Body: The body is where you can put the message that will go to the Team. Make sure the Content-Type is “application/json”. Make sure that the Method is set to POST: The Maker channel lets you POST to URL endpoints, perfect for what we want to do.Ĭlick on the “Make a web request” button:Ĭopy the secret URL you got from Teams and paste it into the URL field. Once you get here, click “that” to add the action. Step through whatever configuration options you need to setup your service: I like to keep my team informed!įirst, choose the service. For this example I’m going to post to my team when the forecast suggests that it’s going to rain tomorrow. Bear that in mind before you share it around! ![]() This is a public URL – anyone who has it can post to your team. This is an auto-generated, unique URL that posts to your team. Once the webhook is created you’ll see a URL. Give your webhook a fancy name, and upload an image if you want to – this image will show up as the avatar when your message is posted:Ĭlick the Create button. Setup in Teamsįrom within a team, click the ellipsis next to the team name, and choose Connectors:įind the Incoming Webhook connector in the list, and click Add: Read on for instructions on setup, then using in IFTTT and PowerShell. Why is this exciting? Wouldn’t it be handy if your website monitoring could post to your team when the CPU starts maxing out? Or, when the server-room door is opened, or the temperature there reaches a peak temperature. Or build it into PowerShell scripts to notify a Team when something happens. That would mean that you can integrate it with IFTTT, or use it with anything that can post to a URL, like monitoring tools. Imagine if you could post to a team, just by calling a web URL? I’ve already blogged about the developer opportunities that exist today, but it turns out that there’s a really cool, single integration method for posting messages into Teams. Microsoft Teams has been out for a little while now. Edit: I found out after posting this that Michael Greene actually wrote a very similar post on this a few days ago, so you should definitely go and read his post too, especially as he has some additional information about posting cards as well as just IMs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |