You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Meeting.GetAsync method is already designed to return a InstantMeeting, ScheduledMeeting or RecurringMeeting depending on the type of the meeting you are retrieving and all relevant properties should be populated. My guess is that you are simply not casting the retrieved meeting to the ScheduledMeeting class which would explain why you are not seeing the StartTime property; but this is just a guess on my part.
Here is the code sample I used to retrieve a scheduled meeting and to validate that the start date is populated as expected:
varstart=DateTime.UtcNow.AddMonths(1);varduration=30;varsettings=newMeetingSettings(){ApprovalType=MeetingApprovalType.Manual};vartrackingFields=newDictionary<string,string>(){{"field1","value1"},{"field2","value2"}};varnewScheduledMeeting=awaitclient.Meetings.CreateScheduledMeetingAsync(userId,"ZoomNet Integration Testing: scheduled meeting","The agenda",start,duration,"p@ss!w0rd",settings,trackingFields,cancellationToken).ConfigureAwait(false);awaitlog.WriteLineAsync($"Scheduled meeting {newScheduledMeeting.Id} created").ConfigureAwait(false);varscheduledMeeting=(ScheduledMeeting)awaitclient.Meetings.GetAsync(newScheduledMeeting.Id,null,cancellationToken).ConfigureAwait(false);awaitlog.WriteLineAsync($"The meeting is scheduled to start on {scheduledMeeting.StartTime.ToLongDateString()} at {scheduledMeeting.StartTime.ToLongTimeString()}").ConfigureAwait(false);
When you get a meeting using GetAsync, it doesn't return the StartTime data of the meeting.
It seems that you need to return the proper type of meeting depending on the type of meeting.
In this case it should be ScheduledMeeting when the type is scheduled.
The text was updated successfully, but these errors were encountered: