page_type | description | products | languages | extensions | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
This sample shows the contents of meeting tab context object. |
|
|
|
This sample shows the contents of meeeting tab context object in a meeting tab.
- NodeJS
- ngrok or equivalent tunnelling solution
- Teams Microsoft Teams is installed and you have an account
-
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.
-
Clone the repository
git clone https://github.com/OfficeDev/Microsoft-Teams-Samples.git
-
Install node modules
Inside node js folder, navigate to
samples/tab-meeting-context/nodejs/ClientApp
open your local terminal and run the below command to install node modules. You can do the same in Visual Studio code terminal by opening the project in Visual Studio code.npm install
-
Run the solution from the same path terminal using below command.
npm start
-
Modify the
manifest.json
in the/AppPackage
folder and replace the following details{{Manifest-id}}
with some unique GUID.{{App-id}}
Registerd for app in step 1.{{Domain Name}}
with your application's base url, e.g. https://1234.ngrok.io
-
Zip the contents of
AppPackage
folder into amanifest.zip
, and use themanifest.zip
to deploy in app store or add to Teams. -
Upload the manifest.zip to Teams (in the Apps view click "Upload a custom app")
- Go to Microsoft Teams. From the lower left corner, select Apps
- From the lower left corner, choose Apps -> Manage your apps -> Upload an app.
- Go to your project directory, the ./AppPackage folder, select the zip folder, and choose Open.
- Select Add in the pop-up dialog box. Your app is uploaded to Teams.
-
Add the tab in meeting.
NOTE: Only accounts with admin access can create private/shared channels in team.
- Add the tab in meeting.
- The details of the meeting context object will be shown on tab based.
- You can expand/reduce the JSON for the context object and can also copy a particular object slice.