Forum Discussion

Developers_Invillia's avatar
Developers_Invillia
Copper Contributor
Jul 08, 2020

Problem when trying to join a meeting created using the MS Graph API via desktop application

We have an application that creates meetings using the MS Graph API with the onlineMeeting method. We have been using this method for over 5 months and a short time ago we noticed a bug.

 

When trying to join one of these meetings through the desktop application (with deep link) the screen stopped in "connecting" and the users are unable to access the meeting. However, when trying to access the same meeting through the link on the web (browser) you normally access it.

 

Below are examples of the API we consume:

 
API onlineMeeting
 
POST https://graph.microsoft.com/v1.0/me/onlineMeetings
Content-Type: application/json
 
{
  "startDateTime":"2019-07-12T14:30:34.2444915-07:00",
  "endDateTime":"2019-07-12T15:00:34.2464912-07:00",
  "subject":"Teste Meeting",
  "participants": {
      "organizer": {
        "identity": {
          "user": {
            "id": "oid of user teams",
          },
        },
      },
    },
}
 
And here's how we use it on sdk Pernille-Eskebo/teams-js:
 
 
microsoftTeams.initialize();
microsoftTeams.getContext((context => {
    if (context.hostClientType === "web") {
        window.open(joinWebUrl, "_blank")
        return;
    }
 
    const joinUrl = encodeURI(joinUrl);
    microsoftTeams.executeDeepLink(joinUrl);
}));
 
Is anyone having the same problem or can they help us with solutions to work around it?
 
Thanks,
  • Developers_Invillia ,

     

    I am not able to reproduce it. Can you please share which version of Teams client sdk are you using?

    Just to confirm from the below snippet, You are facing when below code snippet executes right ?
    const joinUrl = encodeURI(joinUrl);
    microsoftTeams.executeDeepLink(joinUrl); 

    • Developers_Invillia's avatar
      Developers_Invillia
      Copper Contributor

      subhasish-MSFT Hello, we are using version 1.6.0.

      Exactly, the error to connect to a meeting happens only through deeplink. From a meeting created by the MS Graph API onlineMeetings.

      • subhasish-MSFT's avatar
        subhasish-MSFT
        Icon for Microsoft rankMicrosoft

        Developers_Invillia , 

         

        I am able to reproduce it, For quick fix I tried using with out encoding the URL.

        Try calling like this.

        microsoftTeams.executeDeepLink('meeting_url');

         

        It did work for me. Please let me know if it helps.

Resources