page_type | description | products | languages | extensions | urlFragment | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
This is a sample application which demonstrates how to create meeting in bulk on Teams calendar. |
|
|
|
officedev-microsoft-teams-samples-graph-bulk-meetings-csharp |
This is a sample application which demonstrates how to create meeting in bulk on Teams calendar use to create meeting to upload excel sheet.
- Meeting Event.
- Microsoft Teams is installed and you have an account (not a guest account)
- .NET 6.0 SDK.
# determine dotnet version dotnet --version
- ngrok or equivalent tunneling solution
- M365 developer account or access to a Teams account with the appropriate permissions to install an app.
- 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.ReadWrite
Calendars.Read
-
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 appsettings.json 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
- File -> Open -> Project/Solution
- Navigate to folder where repository is cloned then
samples/EventMeeting/csharp/EventMeeting.sln
- Open ngrok and run command
ngrok http -host-header=rewrite 3978
- Once started you should see link
https://41ed-abcd-e125.ngrok.io
. Copy it, this is your baseUrl that will used as endpoint for Azure bot.
Update configuration with the MicrosoftAppId
, MicrosoftAppPassword
and MicrosoftAppTenantId
.
Replace the following details:
{{APP-ID}}
with any guid id value.{{BASE-URL}}
with base Url domain. E.g. if you are using ngrok it would behttps://1234.ngrok.io
then your domain-name will be1234.ngrok.io
.- 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")