Skip to content

CreateEventRequest

reference
1 min readUpdated

Kind: Class

Source: Outlook_plugin/src/calendar/calendar.model.ts (line 207)

Part of: Calendar

Simplified class for creating calendar events

CreateEventRequest is a request model for calendar event creation in the Outlook plugin. It carries event data from calendar-facing code to the event creation flow.

Properties

PropertyType
subjectstring
start`{ dateTime: string
end`{ dateTime: string
body`{ contentType?: 'text'
location{ displayName: string; address?: { street?: string; city?: string; state?: string; postalCode?: string; countryOrRegion?: string; }; }
attendees`{ emailAddress: { address: string; name?: string; }; type?: 'required'
isAllDayboolean
importance`'low'
showAs`'free'
sensitivity`'normal'
reminderMinutesBeforeStartnumber
isReminderOnboolean
categoriesstring[]
isOnlineMeetingboolean
onlineMeetingProvider`'teamsForBusiness'
allowNewTimeProposalsboolean
responseRequestedboolean
recurrence`{ pattern: { type: 'daily'

Diagram

mermaid
graph LR
  Client[Calendar UI or command] --> Request[CreateEventRequest]
  Request --> CalendarFlow[Calendar event creation flow]
  CalendarFlow --> Outlook[Outlook calendar]

Usage

ts
import { CreateEventRequest } from './calendar.model';

const request = new CreateEventRequest();

// Set the event fields declared by CreateEventRequest.

await calendarService.createEvent(request);

AI Coding Instructions

  • Keep event creation input in CreateEventRequest rather than passing unrelated objects into calendar code.
  • Match field names and value types already declared in calendar.model.ts.
  • Validate required event data before sending the request to the calendar service.
  • Keep Outlook-specific API mapping in the calendar integration layer, not in UI code.

Was this page helpful?

Download as PDF