page_type | description | products | languages | extensions | urlFragment | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
This is an sample application which shows how to create teams meetings in bulk. |
|
|
|
officedev-microsoft-teams-samples-graph-bulk-meetings-nodejs. |
This is an sample application which shows how to create teams meetings in bulk using file upload method.
- Microsoft Teams is installed and you have an account (not a guest account)
- NodeJS
- Register a new application in the Azure Active Directory – App Registrations portal.
- On the overview page, copy and save the Application (client) ID, Directory (tenant) ID. You’ll need those later when updating your Teams application manifest and in the appsettings.json.
- Navigate to API Permissions, and make sure to add the follow permissions:
-
Select Add a permission
-
Select Microsoft Graph -> Application permissions.
Calendars.Read
,Calendars.ReadWrite.All
,OnlineMeetings.Read.All
,OnlineMeetings.ReadWrite.All
-
Click on Add permissions. Please make sure to grant the admin consent for the required permissions.
- Navigate to the Certificates & secrets. In the Client secrets section, click on "+ New client secret". Add a description (Name of the secret) for the secret and select “Never” for Expires. Click "Add". Once the client secret is created, copy its value, it need to be placed in the .env file.
Note these instructions are for running the sample on your local machine, the tunnelling solution is required because the Teams service needs to call into the app.
git clone https://github.com/OfficeDev/Microsoft-Teams-Samples.git
In the folder where repository is cloned navigate to samples/graph-bulk-meetings-nodejs/nodejs
Update configuration with the MicrosoftAppId
, MicrosoftAppPassword
and MicrosoftAppTenantId
.
ngrok http -host-header=rewrite 3978
Inside node js folder, 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
npm start
Navigate to client folder, 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
cd client
npm install
npm start
- Edit the
manifest.json
contained in theManifest
folder to replace your Base url wherever you see the place holder string<<BASE-URL>>
. Also replace any random guid with the place holder<<APP-ID>>
. - Zip up the contents of the
Manifest
folder to create amanifest.zip
- Upload the
manifest.zip
to Teams (in the Apps view click "Upload a custom app")