Create Event linked to Team Channel - Microsoft Api Graph

I'm trying to create an event into a calendar that mocks an event created directly on Microsoft Teams. So basically when you create an event via Microsoft Teams you can specify the group & the channel that must be part of the event.
I'm using the proper endpoint: https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http.
This is the info I'm passing as post request :
{
subject:"Event Subjct",
isOrganizer: true,
start: {
dateTime:"2020-12-29T12:00:00",
timeZone:"Pacific Standard Time"
},
end: {
dateTime:"2020-12-29T14:00:00",
timeZone:"Pacific Standard Time"
},
isAllDay: false,
allowNewTimeProposals: true,
isOnlineMeeting: true,
attendees: {
{
emailAddress: {
address:"<groupName@emailaddress.ext>", <-- got directly from Azure
name:"<TeamGroupName>"
},
type:"required"
}
},
hideAttendees: false,
type: "singleInstance",
transactionId: "<UNIQUE_ID>",
onlineMeetingProvider: "teamsForBusiness"
}
Note: all values between <..> are placeholder.
The event is correctly created but there's no reference on the Team channel group specified in the attendees field. I've search the definition of attendees array and there's nothing specific to note a group+channel in the attendee collection : https://learn.microsoft.com/en-us/graph/api/resources/attendee?view=graph-rest-1.0
Any help?
Thanks
When the team/channel email is added too the event in the attendee array you will receive an event invitation in the channel. Any one in the team/channel can join the meeting using that link, Are not receiving the email in the channel?
@Nikitha-MSFT I'm not talking about notification, I'm talking about linking a specific Channel and chats :
First screen: this event has been created from Teams ( from the application ) and I've linked a Group+Channel --> Demo + General
Second screen: this event has been created via the API but even if I gave as organizer the group itself, there's no link
Any idea?
The screen shots are not visible could you please add the proper screen shots?
@Nikitha-MSFT Can you see them now ?
Event with team+channel
Event WITHOUT team+channel
When you Create the team using teams the channel is added in the add channel area, But when you create event using graph API The channel added as a person, Hence you are not receiving the link when you create the event from API.
And what value of the channel should I add in the attendeed array, the id?
And if this is applied, will the meeting chat be embedded in the channel's chat at the end?
@Nikitha-MSFT Hi. I have a similar issue where I tried to post the Caneldar event in the Teams Channel message using Graph API. I can see the created event from the Teams Calendar app. However, I don't see the message from the Channel. I have tried Graph API v1.0 and beta, but nothing helps. Can you please help me out?!
Here is the same Graph API request:
API: POST-https://graph.microsoft.com/beta/me/events
Request body:
{
"subject": "Calendar Eventf9EtJ",
"body": {
"contentType": "HTML",
"content": "Sample BOT Calendar eventxcPRGyR1wi"
},
"start": {
"dateTime": "2022-05-22T00:59:22",
"timeZone": "UTC"
},
"end": {
"dateTime": "2022-05-22T01:29:22",
"timeZone": "UTC"
},
"location": {
"displayName": "Events"
},
"attendees": [
{
"emailAddress": {
"address": "ca7e2c3f.miexpresslane.com@uk.teams.ms",
"name": "Events"
},
"type": "required"
}
],
"allowNewTimeProposals": true,
"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness"
}
----------
And API returned with a successful response.
Sign in to comment
1 answer
Sort by: Most helpful
@Nikitha-MSFT Hi. I have the same problem here. I need to create programmatically an event or online meeting related or linked to specific channel. Is there any solution for this scenario? Is there some kind of roadmap to archieve this?
Sign in to comment
Activity