Create Outlook Event using HTTP PUT Request with Attendee

Hi Everyone,
I am trying to create a Simple Outlook Calendar Event with an HTTP Request to Microsoft Outlook with a JSON Body , so far I have been unsuccessful.

HTTP 400 There was an error: “Bad request - please check your parameters”
HTTP 405 There was an error: “Method not allowed - please check you are using the right HTTP method”

The Technical Details are as follows:
https://graph.Microsoft.com/v1.0/me/calendar/events

Predefined Credentials: Microsoft Outlook OAuth2 API

Json Body:
{
“subject”: “My event”,
“start”: {
“dateTime”: “2024-12-24T04:54:49.694Z”,
“timeZone”: “UTC”
},
“end”: {
“dateTime”: “2024-12-31T04:54:49.694Z”,
“timeZone”: “UTC”
}
}

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hi @haseebminhas

Welcome to the community! Have you considered using our Outlook node, we support calendar operations as well: Microsoft Outlook node documentation | n8n Docs

As for your issue, not sure how outlook’s API expects this JSON body to look like but you might have more luck with our node, unless there’s a reason you can’t use it?

1 Like

@gualter As far as I a tell you can’t add attendees to an event using the node in n8n so this would be a really helpful addition.

It exists as an option in the Microsoft graph API list, but an agent in m8n has to just create the event then send separate emails with links to the event without adding them as attendees which looks a bit weird and doesn’t add it to their calendar automagically. There’ are options to add required and optional attendees to events but they don’t show in the n8n outlook tool.

Currently the only options for creating events in Outlook in n8n are:

  • Create
  • Delete
  • Get
  • Get Many
  • Update

“attendees” and “organizer” look relevant.

In Google calendar the tool has options for:

Create#

Use this operation to add an event to a Google Calendar.

Enter these parameters:

  • Credential to connect with: Create or select an existing Google Calendar credentials.
  • Resource: Select Event.
  • Operation: Select Create.
  • Calendar: Choose a calendar you want to add an event to. Select From list to choose the title from the dropdown list or By ID to enter a calendar ID.
  • Start Time: The start time for the event. By default, uses an expression evaluating to the current time ({{ $now }}).
  • End Time: The end time for the event. By default, this uses an expression evaluating to an hour from now ({{ $now.plus(1, 'hour') }}).
  • Use Default Reminders: Whether to enable default reminders for the event according to the calendar configuration.
  • All Day: Whether the event is all day or not.

  • Attendees: Attendees to invite to the event.

  • Color Name or ID: The color of the event. Choose from the list or specify the ID using an expression.

  • Conference Data: Creates a conference link (Hangouts, Meet, etc.) and attaches it to the event.

  • Description: A description for the event.

  • Guests Can Invite Others: Whether attendees other than the organizer can invite others to the event.

  • Guests Can Modify: Whether attendees other than the organizer can modify the event.

  • Guests Can See Other Guests: Whether attendees other than the organizer can see who the event’s attendees are.

  • ID: Opaque identifier of the event.

  • Location: Geographic location of the event as free-form text.

  • Max Attendees: The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only returns the participant.

  • Repeat Frequency: The repetition interval for recurring events.

  • Repeat How Many Times?: The number of instances to create for recurring events.

  • Repeat Until: The date at which recurring events should stop.

  • RRULE: Recurrence rule. When set, ignores the Repeat Frequency, Repeat How Many Times, and Repeat Until parameters.

  • Send Updates: Whether to send notifications about the creation of the new event.

  • Show Me As: Whether the event blocks time on the calendar.

  • Summary: The title of the event.

In outlook there are only options for:

  • Event
    • Create
    • Delete
    • Get
    • Get Many
    • Update
      —-
      Adding extra functionality where possible to the match the Outlook tool with the Google tool would be greatly appreciated.
3 Likes

I hear you, could be a good improvement indeed. Please open the feature request directly in the GitHub repo so our nodes team can take a look later, or you can open a PR as well for their consideration!

Thanks for the suggestion.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.