Skip to main content

Create calendar event

Create a meeting or appointment, optionally inviting attendees.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/create_event · 27 inputs (3 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
SubjectStringYesTitle.
StartDateTimeYesStart date and time.
EndDateTimeYesEnd date and time.
Time zoneStringNoUTCTime zone of start and end, e.g. India Standard Time or Europe/London.
AttendeesAnyNoAttendee address(es).
BodyStringNoDescription.
LocationStringNoLocation.
Optional attendeesAnyNoAddress(es) invited as optional.
All dayBooleanNofalseAll-day event: only the dates of start and end count; the end date may equal the start date.
Online meetingBooleanNofalseAdd a Teams meeting link.
Body is HTMLBooleanNofalseThe description is HTML.
ImportanceStringNoImportance; Outlook's default when empty.
Show asStringNoHow the time shows in the calendar (oof = out of office); busy when empty.
SensitivityStringNoPrivacy of the event; normal when empty.
Reminder (minutes)NumberNoReminder this many minutes before the start; 0 turns the reminder off; Outlook's default when empty.
CategoriesListNoOutlook category names, e.g. ["Finance"].
RecurrenceStringNononeRepeat the event; weekly repeats on the start's weekday, monthly on its day of the month.
Recurrence intervalNumberNo1Repeat every this many days, weeks, months or years.
Recurrence endDateTimeNoLast date of the series; it has no end when empty and no count is given.
Recurrence countNumberNoNumber of occurrences, instead of an end date.
MailboxStringNomeMailbox: me, or a user's email address (needs application permission).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.
CalendarStringNoCalendar name or id to put the event in; the default calendar when empty.
AttachmentsListNoLocal files (up to 3 MB each) attached to the event after it is created.
Recurrence days of weekListNoWeekdays the event repeats on, e.g. ["monday", "thursday"]. For weekly repeats, instead of the start's weekday; for monthly or yearly repeats, used with recurrence_week_of_month.
Recurrence week of monthStringNoMonthly or yearly repeats only: repeat on this week of the month (e.g. the second Tuesday) instead of on a fixed day of the month.

Outputs​

OutputTypeWhat it is
event_idStringEvent id.
web_linkStringLink to open the event in Outlook.
online_meeting_urlStringTeams join link, when online_meeting is true.