Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create event in outlook calendar with external id #1955

Closed
glekhak opened this issue Feb 23, 2022 · 1 comment · Fixed by #3152
Closed

Unable to create event in outlook calendar with external id #1955

glekhak opened this issue Feb 23, 2022 · 1 comment · Fixed by #3152

Comments

@glekhak
Copy link

glekhak commented Feb 23, 2022

Issue Summary
For Office 365 Calendar service microsoft provides different api's for creating events with & without external Id. Here in cal.com we are using same api for both. If external id is present it is not able to create event in connected calendar.

image

Code causing issue

async createEvent(event: CalendarEvent): Promise {
try {
const accessToken = await this.auth.getToken();

  const calendarId = event.destinationCalendar?.externalId
    ? `${event.destinationCalendar.externalId}/`
    : "";

  const response = await fetch(`https://graph.microsoft.com/v1.0/me/calendar/${calendarId}events`, {
    method: "POST",
    headers: {
      Authorization: "Bearer " + accessToken,
@glekhak glekhak changed the title Unable to create event in outlook calendar Unable to create event in outlook calendar with external id Feb 23, 2022
@milospuac
Copy link
Contributor

Thanks for reporting the issue. Our team will have a look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants