page_type | description | products | languages | extensions | contentType | createdDate | ||||
---|---|---|---|---|---|---|---|---|---|---|
sample |
Microsoft Teams meeting extensibility sample for iteracting with Details Tab in-meeting |
|
|
samples |
07-07-2021 13:38:27 |
This sample shows creating poll in meeting , where memebers of the meeting can answer poll question and can see the results.
-
.NET Core SDK version 3.1
# determine dotnet version dotnet --version
-
ngrok or equivalent tunnelling solution
-
Register your app with Microsoft identity platform via the Azure AD portal
-
Your app must be registered in the Azure AD portal to integrate with the Microsoft identity platform and call Microsoft Graph APIs. See Register an application with the Microsoft identity platform.
-
Register a bot with Azure Bot Service, following the instructions here.
-
-
Ensure that you've enabled the Teams Channel
-
While registering the bot, use
https://<your_ngrok_url>/api/messages
as the messaging endpoint.NOTE: When you create your bot you will create an App ID and App password - make sure you keep these for later.
-
Clone the repository
git clone https://github.com/OfficeDev/Microsoft-Teams-Samples.git
-
Build your solution
- Launch Visual Studio
- File -> Open -> Project/Solution
- Navigate to
samples/meetings-details-tab/csharp
folder - Select
DetailsTab.csproj
file - Press
F5
to run the project
-
Setup ngrok
ngrok http -host-header=rewrite 3978
-
Go to appsettings.json and add
MicrosoftAppId
,MicrosoftAppPassword
andBaseUrl
information. -
Update the manifest.json file with
Microsoft-App-ID
andBaseUrl
value. -
Run your app, either from Visual Studio with
F5
or usingdotnet run
in the appropriate folder.
Interact with Details Tab in Meeting.
-
Install the Details Tab manifest in meeting chat.
-
Add the Details Tab in Meeting
-
Click on
Add Agenda
-
Click on Send button in Agenda from Tab.
-
An Adaptive Card will be posted in meeting chat for feedback
-
Participants in meeting can submit their response in adaptive card
-
Response will be recorded and Bot will send an new adaptive card with response.
-
Participants in meeting can view the results from meeting chat or Tab itself.