microsoft-teams

How to query for the list of members and their basic profiles, including Teams user IDs?

别来无恙 提交于 2020-04-17 22:50:56
问题 Is there an end-to-end sample provided to query for the list of members and their basic profiles, including Teams user IDs and Azure Active Directory (Azure AD)? I am following https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=json and microsoft graph Postman collection, however it seems too complex for me to understand. I need to fetch all the userId under for my MS Team 回答1: The document you are following is indeed used to get the information you

Bot Framework REST API send proactive message to multiple users with one conversation ID

不羁岁月 提交于 2020-04-17 22:06:50
问题 I'm wondering if there is a way to send 1:1 message to users using only one conversation id? So instead of looping through each user and generating a conversation id, I'm trying to create a request to generate a conversation ID with multiple members. See payload below: POST /v3/conversations { "activity": { "type": "message", "channelId": "msteams", "text": "Testing" }, "bot": { "id": "215000000-00000-0000-00000", "name": "Test", "aadObjectId": null, "role": null }, "isGroup": false, "members

I get an error [OnTurnError]:Unknown Error on SendActivity of bot

生来就可爱ヽ(ⅴ<●) 提交于 2020-04-17 20:42:09
问题 My bot integrated into microsoft teams ,gives out an error after SentActivity call in webapp based teams but works fine on Desktop Application of Teams. Code failing - await stepContext.context.sendActivity({ type: 'typing' }); The above logic only fails for web based teams and not on Desktop application. Any idea ,why that is? Also the code below works perfectly fine in both- await stepContext.context.sendActivity("Hello There"); 回答1: Is your Teams tenant within the Western European region?

Bot Framework API Create Conversation With Multiple Members

霸气de小男生 提交于 2020-04-17 20:37:30
问题 I'm trying to create a conversation with multiple members and generating a conversation id. My goal is to have the bot message each member listed in the "members" key one-by-one. It works exactly as it should when I only put one item in the "members" key and I am able to generate a conversation id. However, I'm getting an error when I put 2 or more items in the "members" key even though it's supposed to be an array of members. POST /v3/conversations { "activity": { "type": "message",

Error inserting adaptive card to Compose box from a Message Extension (composeExtension/submitAction) Command

北城余情 提交于 2020-04-17 20:28:52
问题 I have a message extension, available on the "..." message context menu, that launches a Task Module. In the task module, I submit some sample data (e.g. microsoftTeams.tasks.submitTask({"x":"y"}); ) I receive the call for "composeExtension/submitAction", but when I try insert something into the compose box, by submitting a response like the following: var card = new HeroCard { Title = "foo", Text = "bar" }; var attachments = new List<MessagingExtensionAttachment>(); attachments.Add(new

Error inserting adaptive card to Compose box from a Message Extension (composeExtension/submitAction) Command

懵懂的女人 提交于 2020-04-17 20:28:09
问题 I have a message extension, available on the "..." message context menu, that launches a Task Module. In the task module, I submit some sample data (e.g. microsoftTeams.tasks.submitTask({"x":"y"}); ) I receive the call for "composeExtension/submitAction", but when I try insert something into the compose box, by submitting a response like the following: var card = new HeroCard { Title = "foo", Text = "bar" }; var attachments = new List<MessagingExtensionAttachment>(); attachments.Add(new

Azure Monitor Alerts using webhook to Microsoft Teams - No messages to Teams

柔情痞子 提交于 2020-04-16 03:42:25
问题 I'm using Azure Monitor/Log Analytics to trigger alerts successfully. I'm trying to get the alerts into a Microsoft Teams channel (as well as a slack channel for debugging) with no success. I've an alert that's successfully being triggered. I have an action group with my email, sms and azure app push configured. I've been receiving these messages each time the alert triggers. I've got another action group with a couple of webhooks in for a Microsoft Teams and Slack channels. I'm not receiving

Microsoft Teams botbuilder How to create conversation in another channel

被刻印的时光 ゝ 提交于 2020-04-11 12:19:07
问题 (For reference I have admin_consent for the organization with a auth scope of offline_access User.ReadWrite.All Group.ReadWrite.All AppCatalog.ReadWrite.All for my token that I use to interact with the Teams instance.) After installing the app via POST /teams/{id}/installedApps it sends an conversationUpdate event that I respond to and save the entire ConversationReference object. It has a lot of stuff I don't need but I'm not sure what is necessary. The immediate response goes to the General

Create Microsoft Team Tab with API

老子叫甜甜 提交于 2020-04-10 05:23:33
问题 I am researching the Microsoft Teams and graph API possibilities and would like to know if it is on the roadmap to be able to create and configure Tabs through the graph API. I have seen that teams are in the graph API beta, but can't find any information about creating or configuring tabs programmatically. Thanks! 回答1: At this time, no such functionality exists. I would suggest adding this request to the Microsoft Teams UserVoice. 回答2: You can do it programatically as stated below. Hope this

Create Microsoft Team Tab with API

让人想犯罪 __ 提交于 2020-04-10 05:22:23
问题 I am researching the Microsoft Teams and graph API possibilities and would like to know if it is on the roadmap to be able to create and configure Tabs through the graph API. I have seen that teams are in the graph API beta, but can't find any information about creating or configuring tabs programmatically. Thanks! 回答1: At this time, no such functionality exists. I would suggest adding this request to the Microsoft Teams UserVoice. 回答2: You can do it programatically as stated below. Hope this