Outlook
This page provides information on how to connect to Outlook. This integration enables you to manage calendars and events, such as creating and updating calendar events in a user's Outlook account.
Connect Outlook
To connect to Outlook, you must authenticate using an OAuth2 connection. After initiating the connection, sign in with your Microsoft account and authorize access to calendar-related permissions. Ensure you select the appropriate user ID and calendar ID for accessing or modifying events.
Query Outlook
The following section is a reference guide that provides a description of the available commands with their parameters to create Outlook queries.
Create Event
Creates a new calendar event in Outlook for a specified user. You can define details such as the subject, timing, attendees, and event location.
User ID string
Unique identifier of the Outlook user whose calendar the event is created in.
This should be an email address associated with a Microsoft account, such as user@outlook.com or a work email from Microsoft 365 (e.g., user@company.com).
Gmail or other non-Microsoft domains are not supported unless linked to a Microsoft identity.
Subject string
Title or summary of the calendar event. This appears prominently on the user’s calendar view, mobile app, and any synced notifications.
Start Time string
Defines when the event begins. This must follow ISO 8601 format, such as:
2025-04-15T10:00:00
You can also dynamically generate this from a Date widget:
{{ startDatePicker.selectedDate }}
Time Zone string
The time zone in which the Start and End times are interpreted.
Providing the correct time zone ensures events display accurately for attendees across regions.
End Time string
End time of the event in ISO 8601 format. Must be after the Start Time and aligned with the same Time Zone.
Calendar ID string
The unique identifier of the calendar where the event will be created.
For most users, the default calendar has an ID of calendar. However, users may have multiple calendars, including shared calendars, delegated calendars, or additional personal calendars they’ve created.
You can use the Custom Action command to make a request to the Microsoft Graph endpoint:
/users/{user-id}/calendars
This allows you to fetch all calendar IDs programmatically and use them dynamically in your app.
Description string
Optional body text describing the event's agenda, context, or any additional notes.
Content Type string
Specifies the formatting of the Description field. Valid values are:
-
text: plain text only -
html: allows rich content formatting like bold text, lists, or hyperlinks
HTML Example:
<p><strong>Agenda:</strong></p>
<ul>
<li>Review Q2 metrics</li>
<li>Discuss campaign rollout</li>
<li>Assign next steps</li>
</ul>
Location Name string
Text label for the meeting location. This can be a room, office, or virtual session name.
Location URL string
Link to the virtual meeting location (e.g., Microsoft Teams, Zoom).
Example:
https://teams.microsoft.com/l/meetup-join/19%3ameeting...
Attendees array
A list of participants to invite. Each attendee should be an object with at least emailAddress. You can also include type (e.g., required, optional).
Example structure:
[
{ "emailAddress": { "address": "john@example.com" }, "type": "required" },
{ "emailAddress": { "address": "jane@example.com" }, "type": "optional" }
]
Use dynamic forms or repeaters in Appsmith to collect attendee emails and roles.
Update Event
Updates an existing calendar event in Outlook. Use this to modify subject, timing, location, attendees, and other details.
User ID string
Unique identifier of the Outlook user whose calendar the event is created in.
This should be an email address associated with a Microsoft account, such as user@outlook.com or a work email from Microsoft 365 (e.g., user@company.com).
Gmail or other non-Microsoft domains are not supported unless linked to a Microsoft identity.
Event ID string
The unique identifier of the calendar event to be updated or deleted.
To retrieve an Event ID without using external APIs, you can:
-
Use the Custom Action command to call
/users/{user-id}/calendars/{calendar-id}/eventsThis will return a list of events with their associated id values. You can extract the Event ID from this response and use it in update or delete operations.
-
Alternatively, if you are viewing an event in Outlook Web, the Event ID appears in the URL when you open the event details.
https://outlook.office.com/calendar/item/AAkALgAAAAAAHYQDEap...
Subject string
Updated event title or summary.
Start Time string
Defines when the event begins. This must follow ISO 8601 format, such as:
2025-04-15T10:00:00
Time Zone string
Updated time zone for the event time fields.