Meeting do not appear in teams and outlook calendar

Osni Chagas 21 Reputation points
2021-12-01T19:00:37.477+00:00

Hi

I have a problem with this API

When i create a meeting, that meeting do not appear in the teams and outlook calendar
I'm using this API: application-post-onlinemeetings
Content source: application-post-onlinemeetings.md

My code:

var tenantId = ConfigurationManager.AppSettings["graph.tenantId"];  
var clientId = ConfigurationManager.AppSettings["graph.clientId"];  
var clientSecret = ConfigurationManager.AppSettings["graph.clientSecret"];  
var scopes = new[] { "https://graph.microsoft.com/.default" };  
  
                var options = new TokenCredentialOptions { AuthorityHost = AzureAuthorityHosts.AzurePublicCloud };  
  
                var clientSecretCredential = new ClientSecretCredential(  
                    tenantId, clientId, clientSecret, options);  
  
                var graphClient = new Microsoft.Graph.GraphServiceClient(clientSecretCredential);  
  
                var onlineMeeting = new Microsoft.Graph.OnlineMeeting  
                {  
                    StartDateTime = DateTimeOffset.Parse("2021-10-15T15:00:00.2444915-03:00"),  
                    EndDateTime = DateTimeOffset.Parse("2021-10-15T16:00:00.2444915-03:00"),  
                    Subject = "Creation test",  
                    Participants = new Microsoft.Graph.MeetingParticipants  
                    {  
                        Attendees = new List<Microsoft.Graph.MeetingParticipantInfo> {  
                            new Microsoft.Graph.MeetingParticipantInfo {  
                                Upn = "******@fceupr.onmicrosoft.com",  
                                Role = Microsoft.Graph.OnlineMeetingRole.Attendee }  
                        },  
                        Organizer = new Microsoft.Graph.MeetingParticipantInfo  
                        {  
                            Upn = "******@fceupr.onmicrosoft.com",  
                            Role = Microsoft.Graph.OnlineMeetingRole.Producer  
                        }  
                    }  
                };  
  
                var result = graphClient.Users["53a52114-3d02-4974-945d-3840ee84da32"].OnlineMeetings  
                    .Request()  
                    .AddAsync(onlineMeeting).Result;  

Result:
154221-image.png

Participants result:
154186-image.png

Join URL:
0

Meeting:
154196-image.png

Meeting participants:
154231-image.png

Organizer teams calendar:
154241-image.png

Organizer outlook calendar:
154214-image.png

Attendee teams calendar:
154197-image.png

Attendee outlook calendar:
154090-image.png

What i'm doing wrong?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. RajeshKumarMSFT 1,976 Reputation points Microsoft External Staff
    2021-12-29T18:23:59.897+00:00

    Hi @Osni Chagas ,

    The Online Meeting API which you are consuming in your code line #33 is part of Cloud communications API .

    This Graph API POST /users/{userId}/online Meetings will only create a standalone meeting which is not associated with any event in Organizer/Attendees calendar (Teams/ Outlook).

    If you use this graph call no invitations are sent and the meeting does not appear in the calendar of the organizer. You would need alternative means to distribute the dial-in link, etc. You can refer the below screenshot for properties of Cloud Communication API.

    161218-cloudcommunications.png

    To achieve your requirement you can use create events graph API endpoint POST /users/{id | userPrincipalName}/events.
    which will add meetings to attendees & organizer’s calendars (teams/outlook).

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.