microsoft-teams

Http POST from card in Microsoft Teams

落花浮王杯 提交于 2019-12-04 04:48:13
We are trying to create an approval workflow using Teams, Flow, and Assembla and are running into a bit of trouble. We have a few of the pieces successfully setup however we are unable to initiate a POST action from a card in Teams. In teams we can successfully create a card using the incoming webhook connector with this result. This is created with the following JSON body from a POST action in Flow { "@@type": "MessageCard", "@@context": "http://schema.org/extensions", "summary": "This is the summary property", "themeColor": "f46b42", "sections": [ { "startGroup": true, "title": "**Pending

Incoming Webhook for Private Messages in Microsoft Teams

99封情书 提交于 2019-12-03 16:04:44
I can create an incoming webhook from a C# app or PS Script sending a JSON message to channels like MSFT doc explains. However, I want to use my incoming webhook for send JSON messages from my app to users (as Private Messages) like Slack allows. As far as I know this is not possible with MSFT Teams: https://dev.outlook.com/Connectors/Reference But maybe you know any workaround or something like that to fix it. Thanks in advance :) [EDITED] Code used to post messages into MSFT Team by C# App: //Post a message using simple strings public void PostMessage(string text, string title) { Payload

show welcome message in Microsoft teams using Microsoft bot framework

旧巷老猫 提交于 2019-12-03 13:56:30
问题 I have used below code for showing a welcome message to user. private Activity HandleSystemMessage(Activity message) { if (message.Type == ActivityTypes.DeleteUserData) { // Implement user deletion here // If we handle user deletion, return a real message } else if (message.Type == ActivityTypes.ConversationUpdate) { string replyMessage = string.Empty; replyMessage = Responses.Greeting; return message.CreateReply(replyMessage); } else if (message.Type == ActivityTypes.ContactRelationUpdate) {

Microsoft Teams Webhook Generating 400 for Adaptive Card

こ雲淡風輕ζ 提交于 2019-12-03 13:55:11
I have a functioning webhook to a Teams channel to which I can successfully post messages. I am now trying to post an adaptive card to the webhook. Using Postman and performing a Post to https://outlook.office.com/webhook/xyz , with Content-Type set to application/json in the header and the following adaptive card set in the body. { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "speak": "Nothing to say.", "body": [ { "type": "TextBlock", "text": "Hello Teams' user" } ] } With this I receive a 400 Bad Request and "Summary or Text is

Microsoft Teams : REST APIs

旧时模样 提交于 2019-12-03 11:40:26
问题 I'm interested in getting data(metadata and content of files) out of Microsoft Teams into my application using REST APIs. I have looked at Office 365 APIs and Graph APIs but, I could not find supporting documentation for Microsoft Teams. Any suggestions will be greatly appreciated. Thank you! 回答1: Teams API is now added to beta endpoint in Microsoft Graph. In documentation, you can find it together with Groups. Post, Channel and Chat Thread are available. For example, documentation for

show welcome message in Microsoft teams using Microsoft bot framework

 ̄綄美尐妖づ 提交于 2019-12-03 03:47:22
I have used below code for showing a welcome message to user. private Activity HandleSystemMessage(Activity message) { if (message.Type == ActivityTypes.DeleteUserData) { // Implement user deletion here // If we handle user deletion, return a real message } else if (message.Type == ActivityTypes.ConversationUpdate) { string replyMessage = string.Empty; replyMessage = Responses.Greeting; return message.CreateReply(replyMessage); } else if (message.Type == ActivityTypes.ContactRelationUpdate) { // Handle add/remove from contact lists // Activity.From + Activity.Action represent what happened }

Microsoft Teams : REST APIs

自古美人都是妖i 提交于 2019-12-03 02:05:09
I'm interested in getting data(metadata and content of files) out of Microsoft Teams into my application using REST APIs. I have looked at Office 365 APIs and Graph APIs but, I could not find supporting documentation for Microsoft Teams. Any suggestions will be greatly appreciated. Thank you! Teams API is now added to beta endpoint in Microsoft Graph. In documentation, you can find it together with Groups. Post, Channel and Chat Thread are available. For example, documentation for "channel" resource is here: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/channel

How to programmatically post reaction to Microsoft channel message?

邮差的信 提交于 2019-12-02 17:36:59
问题 Using graph api I'm trying to post a reaction (for example a like) but I can't manage to find the right syntax. If I put a reaction in a message at creation time, it returns an error saying that I can't set the reaction during the creation. I'm then trying to patch or put the message and it return a 501 without giving the exact reason. Can someone put a working sample of a valid json ? 回答1: This is currently not supported in Graph API. We are working on it but do not have a firm timeline to

Microsoft-Graph use $filter on webhook subscriptions

a 夏天 提交于 2019-12-02 12:53:07
问题 I'm interested to use webhook to notify me when a user was added/removed from a Team on Microsoft Teams. But do not create a subscription for each team I prefer to enter in the filter the team that I am interested in being notified. So I used this Request: POST https://graph.microsoft.com/v1.0/subscriptions { "resource": "groups?$filter=mail eq 'someGroupmail@domain.com' or 'ohterGroupMail@domain.com'", "changeType": "updated", "clientState": "1234", "notificationUrl": "https://1234.ngrok.io

How to send a 'conversationUpdate' to Microsoft Teams from bot manually?

核能气质少年 提交于 2019-12-02 11:41:48
问题 I have a bot written with the help of bot framework v4 . The bot is integrated with Microsoft Teams. I want to send a welcome message to the user when the user installed the bot and joins the 1:1 conversation. In Teams the conversationUpdate is fired exactly once (this is when the suer joins the 1:1 conversation) and then never again for that user. My idea was to write a function that is triggered by a chat message to send the updateConversation activity manually to debug the welcome message.