events
2 TopicsMS graph API - How can I send the generated events as a message ?
I want to make an online meeting event and send a message to the channel. I made an online meeting event and checked that all mail and notifications work properly. The important thing is that I want to send the event as a message to the channel. When I create event, var @event = new Event { Subject = subject, Body = new ItemBody { ContentType = BodyType.Html, Content = subject }, Start = new DateTimeTimeZone { DateTime = "2020-09-22T14:30:00", TimeZone = "Korea Standard Time" }, End = new DateTimeTimeZone { DateTime = "2020-09-22T14:35:00", TimeZone = "Korea Standard Time" }, Organizer = new Recipient() { EmailAddress = new EmailAddress { Address = groupInfo.Mail, Name = groupInfo.DisplayName } } , Attendees = new List<Attendee>() { new Attendee { EmailAddress = new EmailAddress { Address = ownMail, Name = "name", }, Type = AttendeeType.Required, Status = new ResponseStatus { Response = ResponseType.Accepted } } , new Attendee { EmailAddress = new EmailAddress { Address = groupInfo.Mail, Name = groupInfo.DisplayName }, Type = AttendeeType.Required } }, AllowNewTimeProposals = true, IsOnlineMeeting = true, OnlineMeetingProvider = OnlineMeetingProviderType.TeamsForBusiness, IsOrganizer = false, ResponseStatus = new ResponseStatus() { Response = ResponseType.Organizer } }; result2 = await graphClient.Groups[pGroupId].Events .Request() .Header("Prefer", "outlook.timezone=\"Korea Standard Time\"") .AddAsync(@event); For now, i'm sending back an online meeting url as a message at channel. like this, var chatMessage = new ChatMessage { Subject = result2.Subject, Body = new ItemBody { ContentType = result2.Body.ContentType, Content = result2.Body.Content } }; await graphClient.Teams[pGroupId].Channels[channel.Id].Messages .Request() .AddAsync(chatMessage); I tried https://docs.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-beta&tabs=csharpbut my events don't have attachments. Please let me know if you have a way. I've been looking all day, but I don't know. Thank you for any help.1.8KViews0likes1CommentRecommended location for creating calendar events for organizational webinars to external users
We host webinars that are delivered by a department (i.e. the fundraising department) at a non-profit organization. There will likely be multiple people at our organization that will run the virtual event via Teams online meeting video, and every participant will be external, likely without Microsoft accounts. We will also want to track who showed up to the online webinar, by viewing a list of the participants after the event is hosted. We're looking to programmatically create these events via Microsoft Graph API, which seems to have equal capabilities to create events on personal and group calendars. That said, we're new, and trying to figure out the best solution path. We're trying to determine the best location to create this event in our calendars. It seems that creating a group for our fundraising department, and then creating the event on the fundraising department's group calendar, would be the appropriate location. Any suggestions? Best, Ryan1.1KViews0likes1Comment