Search code examples
microsoft-teamsadd-inmicrosoft-graph-teams

MS Teams - automatic addin integration


I built a MS Teams Add-In. If I create a new meeting, I have to add the Add-In every time manually to this meeting. Is there any way to integrate it to every (new) meeting by default?

Thank you!


Solution

  • Currently there is no way to integrate automatic addin in meeting. Alternatively you can create an event as online meeting using Graph API with below request.

    POST https://graph.microsoft.com/v1.0/me/events
    Prefer: outlook.timezone="Pacific Standard Time"
    Content-type: application/json
    
    {
      "subject": "Let's go for lunch",
      "body": {
        "contentType": "HTML",
        "content": "Does noon work for you?"
      },
      "start": {
          "dateTime": "2017-04-15T12:00:00",
          "timeZone": "Pacific Standard Time"
      },
      "end": {
          "dateTime": "2017-04-15T14:00:00",
          "timeZone": "Pacific Standard Time"
      },
      "location":{
          "displayName":"Harry's Bar"
      },
      "attendees": [
        {
          "emailAddress": {
            "address":"samanthab@contoso.onmicrosoft.com",
            "name": "Samantha Booth"
          },
          "type": "required"
        }
      ],
      "allowNewTimeProposals": true,
      "isOnlineMeeting": true,
      "onlineMeetingProvider": "teamsForBusiness"
    }  
    

    Please go through this documentation for more info.