Create Event linked to Team Channel

%3CLINGO-SUB%20id%3D%22lingo-sub-2014206%22%20slang%3D%22en-US%22%3ECreate%20Event%20linked%20to%20Team%20Channel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2014206%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI'm%20trying%20to%20create%20an%20event%20into%20a%20calendar%20that%20mocks%20an%20event%20created%20directly%20on%20Microsoft%20Teams.%20So%20basically%20when%20you%20create%20an%20event%20via%20Microsoft%20Teams%20you%20can%20specify%20the%20group%20%26amp%3B%20the%20channel%20that%20must%20be%20part%20of%20the%20event.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EI'm%20using%20the%20proper%20endpoint%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fuser-post-events%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fuser-post-events%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EThis%20is%20the%20info%20I'm%20passing%20as%20post%20request%20%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20subject%3A%22Event%20Subjct%22%2C%0A%20%20isOrganizer%3A%20true%2C%0A%20%20start%3A%20%7B%0A%20%20%20%20dateTime%3A%222020-12-29T12%3A00%3A00%22%2C%0A%20%20%20%20timeZone%3A%22Pacific%20Standard%20Time%22%0A%20%20%7D%2C%0A%20%20end%3A%20%7B%0A%20%20%20%20dateTime%3A%222020-12-29T14%3A00%3A00%22%2C%0A%20%20%20%20timeZone%3A%22Pacific%20Standard%20Time%22%0A%20%20%7D%2C%0A%20%20isAllDay%3A%20false%2C%0A%20%20allowNewTimeProposals%3A%20true%2C%0A%20%20isOnlineMeeting%3A%20true%2C%0A%20%20attendees%3A%20%7B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20emailAddress%3A%20%7B%0A%20%20%20%20%20%20%20%20address%3A%22%3CGROUPNAME%3E%22%2C%20%26lt%3B--%20got%20directly%20from%20Azure%0A%20%20%20%20%20%20%20%20name%3A%22%3CTEAMGROUPNAME%3E%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20type%3A%22required%22%0A%20%20%20%20%7D%0A%20%20%7D%2C%0A%20%20hideAttendees%3A%20false%2C%0A%20%20type%3A%20%22singleInstance%22%2C%0A%20%20transactionId%3A%20%22%3CUNIQUE_ID%3E%22%2C%0A%20%20onlineMeetingProvider%3A%20%22teamsForBusiness%22%0A%7D%3C%2FUNIQUE_ID%3E%3C%2FTEAMGROUPNAME%3E%3C%2FGROUPNAME%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ENote%3A%20all%20values%20between%20%26lt%3B..%26gt%3B%20are%20placeholder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20event%20is%20correctly%20created%20but%20there's%20no%20reference%20on%20the%20Team%20channel%20group%20specified%20in%20the%20attendees%20field.%20I've%20search%20the%20definition%20of%20attendees%20array%20and%20there's%20nothing%20specific%20to%20note%20a%20group%2Bchannel%20in%20the%20attendee%20collection%20%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fattendee%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fattendee%3Fview%3Dgraph-rest-1.0%3C%2FA%3E%3C%2FP%3E%3CP%3EAny%20help%3F%3CBR%20%2F%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2014206%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Graph%20Api%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2024032%22%20slang%3D%22en-US%22%3ERe%3A%20Create%20Event%20linked%20to%20Team%20Channel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024032%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F911000%22%20target%3D%22_blank%22%3E%40marcog5%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20reaching%20us!%3C%2FP%3E%0A%3CP%3EI%20have%20tried%20with%20your%20schema%20payload%20to%20create%20an%20event%2C%20it%20works%20fine%20for%20me.%20It%20created%20an%20event%20and%20also%20can%20able%20to%20see%20the%20array%20of%20event%20attendees%20in%20calendar.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EPlease%20have%20a%20look%20on%20below%20json%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22subject%22%3A%20%22Rama%20Test%20Event%201%22%2C%3CBR%20%2F%3E%22body%22%3A%20%7B%3CBR%20%2F%3E%22contentType%22%3A%20%22HTML%22%2C%3CBR%20%2F%3E%22content%22%3A%20%22Does%20noon%20work%20for%20you%3F%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22start%22%3A%20%7B%3CBR%20%2F%3E%22dateTime%22%3A%20%222020-12-30T14%3A00%3A00%22%2C%3CBR%20%2F%3E%22timeZone%22%3A%20%22Pacific%20Standard%20Time%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22end%22%3A%20%7B%3CBR%20%2F%3E%22dateTime%22%3A%20%222020-12-31T17%3A00%3A00%22%2C%3CBR%20%2F%3E%22timeZone%22%3A%20%22Pacific%20Standard%20Time%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22location%22%3A%20%7B%3CBR%20%2F%3E%22displayName%22%3A%20%22Harry's%20Bar%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22attendees%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22emailAddress%22%3A%20%7B%3CBR%20%2F%3E%22address%22%3A%20%22samanthab%40contoso.onmicrosoft.com%22%2C%3CBR%20%2F%3E%22name%22%3A%20%22Samantha%20Booth%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22type%22%3A%20%22required%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22emailAddress%22%3A%20%7B%3CBR%20%2F%3E%22address%22%3A%20%22v-raakav%40microsoft.com%22%2C%3CBR%20%2F%3E%22name%22%3A%20%22Rama%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%22type%22%3A%20%22required%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3CBR%20%2F%3E%22allowNewTimeProposals%22%3A%20true%2C%3CBR%20%2F%3E%22transactionId%22%3A%20%227E163156-7762-4BEB-A1C6-729EA81755A3%22%3CBR%20%2F%3E%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECalendar%20Event%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Rama-MSFT_0-1609402686502.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243547iB31F2620495935D5%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Rama-MSFT_0-1609402686502.png%22%20alt%3D%22Rama-MSFT_0-1609402686502.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERama%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETeams%20Dev%20Community%20Response%3C%2FSTRONG%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20share%20your%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Faka.ms%252FDevSupportFeedback%26amp%3Bdata%3D04%257C01%257Cv-raakav%2540microsoft.com%257Ce13fdd431efc4a27e95608d89613ffca%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C1%257C637424359976191963%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3Dx%252FAS%252FFwZ6o7A5wtFgOLIEsX2Akw989ElenUnWSTfgyk%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EFeedback%3C%2FA%3E%2F%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Faka.ms%252FDevCommunityEscalationForm%26amp%3Bdata%3D04%257C01%257Cv-raakav%2540microsoft.com%257Ce13fdd431efc4a27e95608d89613ffca%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C1%257C637424359976201958%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DEFCR0LUeqZoGPIKoLrEbFYHb5OA7bBkMAT0dhUm4lXw%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EEscalate%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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://docs.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://docs.microsoft.com/en-us/graph/api/resources/attendee?view=graph-rest-1.0

Any help?
Thanks

1 Reply

Hi @marcog5 ,

 

Thanks for reaching us!

I have tried with your schema payload to create an event, it works fine for me. It created an event and also can able to see the array of event attendees in calendar.


Please have a look on below json,
{
"subject": "Rama Test Event 1",
"body": {
"contentType": "HTML",
"content": "Does noon work for you?"
},
"start": {
"dateTime": "2020-12-30T14:00:00",
"timeZone": "Pacific Standard Time"
},
"end": {
"dateTime": "2020-12-31T17:00:00",
"timeZone": "Pacific Standard Time"
},
"location": {
"displayName": "Harry's Bar"
},
"attendees": [
{
"emailAddress": {
"address": "samanthab@contoso.onmicrosoft.com",
"name": "Samantha Booth"
},
"type": "required"
},
{
"emailAddress": {
"address": "v-raakav@microsoft.com",
"name": "Rama"
},
"type": "required"
}
],
"allowNewTimeProposals": true,
"transactionId": "7E163156-7762-4BEB-A1C6-729EA81755A3"
}

 

Calendar Event:

Rama-MSFT_0-1609402686502.png

 

Thanks, 

Rama

Teams Dev Community Response 

You can share your Feedback/Escalate