节点 / builtin / integration
Microsoft 365
Integrate with Microsoft 365 via Graph: send and read Outlook mail, manage OneDrive files, create calendar events and To Do tasks.
此内容尚不支持你的语言。
Send and read Outlook mail, put files in OneDrive, add calendar events and To Do tasks, all from one Microsoft 365 node.
What it does
Section titled “What it does”The Microsoft 365 node works on four kinds of things (Resource), each with its own Operation:
- Mail (Outlook): send an email, save one as a draft, list your latest messages, or get one message.
- File (OneDrive): upload text as a file, list the files at the top of your OneDrive, or create a sharing link for a file or folder.
- Calendar (Outlook calendar): create an event, or list events.
- To Do: create a task, or list the tasks of a list.
Everything happens in the signed-in account (your own mailbox, drive, calendar and lists). When you fill Source URL, the node adds a Source: line with that link to the end of the email body, event description or task note, so you can keep track of the page it came from.
Mail → List and Calendar → List return 10 items by default (up to 100). File → Upload sends the text in File content as a single upload, which suits files up to about 4 MB. When List ID is empty, To Do uses your default task list.
When to use it
Section titled “When to use it”- Email yourself or a colleague a summary built by an AI node, with the source page linked.
- Save a report as a text or CSV file in OneDrive, then share a view link to it.
- Add a meeting or deadline you found on a page to your Outlook calendar.
- Turn a page into a To Do task, “read later” style.
If you use Google’s apps, see Gmail, Google Drive and Google Calendar.
Inputs and settings
Section titled “Inputs and settings”| 设置项 | 类型 | 作用 |
|---|---|---|
| Credential (必填) | Credential | Sign in with Microsoft. Register a public client (auth-code + PKCE) with delegated permissions; the credential only needs the Application (client) ID. |
11 个选项 · 选择“Resource and Operation”以查看其设置
Mail · Send 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Subject (必填) | Text | The email/event subject. |
| Body (必填) | Text | The email body. |
| To (必填) | List | Recipient email addresses. |
| Body type | Choice | How to interpret the body. Options: Text, HTML. |
| Source URL | Text | The page URL to attach — appended to the body/description when present. |
Mail · List 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Limit | Number | Number of results to return (1-100). 默认值:10 |
Mail · Get 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Message ID (必填) | Text | The Outlook message ID. |
Mail · Draft 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Subject (必填) | Text | The email/event subject. |
| Body (必填) | Text | The email body. |
| To (必填) | List | Recipient email addresses. |
| Body type | Choice | How to interpret the body. Options: Text, HTML. |
| Source URL | Text | The page URL to attach — appended to the body/description when present. |
File · Upload 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| File path (必填) | Text | Destination path in OneDrive (relative to the drive root). |
| File content (必填) | Text | The text content to upload. |
| Content type | Text | MIME type for the uploaded content. |
File · List 的设置
没有其他设置。
File · Get link 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Item ID (必填) | Text | The OneDrive item (file/folder) ID to share. |
| Link type | Choice | Sharing link permission. Options: View, Edit. |
| Link scope | Choice | Who the link works for. Options: Anyone, Organization. |
Calendar · Create event 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Subject (必填) | Text | The email/event subject. |
| Description | Text | The event description. |
| Source URL | Text | The page URL to attach — appended to the body/description when present. |
| Location | Text | The event location. |
| Start (date-time) | Text | Event start as an ISO date-time, e.g. 2026-09-10T09:00:00. |
| End (date-time) | Text | Event end as an ISO date-time. |
| Time Zone | Text | IANA time zone (defaults to UTC), e.g. America/New_York. |
| Attendees | List | Email addresses to invite. |
Calendar · List 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Limit | Number | Number of results to return (1-100). 默认值:10 |
To Do · Create task 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Title (必填) | Text | The task title. |
| Note | Text | A note/body for the task. |
| Source URL | Text | The page URL to attach — appended to the body/description when present. |
| List ID | Text | The To Do list ID (defaults to your default list). |
To Do · List 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| List ID | Text | The To Do list ID (defaults to your default list). |
正在显示 Mail · Send 的设置
- To and Attendees take one email address per entry.
- Body type decides whether Body is read as plain text or as HTML. It is plain text when not set.
- File path is relative to the top of your OneDrive, with folders separated by
/, for exampleReports/daily.csv. An existing file at that path is replaced. - Content type is the file’s type, such as
text/csvorapplication/json. It istext/plainwhen empty. - Start (date-time) and End (date-time) take a date and time without an offset, like
2026-09-10T09:00:00. They are read in Time Zone, which isUTCwhen empty, so set it (for exampleEurope/Paris) to avoid events at the wrong hour. - Link type is
Viewand Link scope isAnyonewhen not set. Your organization may not allowAnyonelinks; useOrganizationthen. - Message ID, Item ID and List ID come from the
idfield of a list operation’s output.
Outputs
Section titled “Outputs”-
Output
- Mail → Send returns
success: trueonce Outlook accepts the email. The email is also saved in Sent Items. - Mail → Draft, Mail → Get, Calendar → Create event and To Do → Create task return the created or fetched item as Microsoft sends it, with its
id. - Mail → List returns one item per message with
id,subject,from,receivedDateTime,webLinkandbodyPreview. - File → List, Calendar → List and To Do → List return one item per file, event or task.
- File → Upload returns the file’s details, including its
id, which you can pass to File → Get link. - File → Get link returns the sharing link; the address is in
link.webUrl.
Dependencies and credentials
Section titled “Dependencies and credentials”- Credential (connection, OAuth2): required. See Create a connection.
The credential is a Microsoft sign-in (OAuth2). You first register a small app in the Azure portal, as a public client with no secret, and paste its Application (client) ID into the credential. Give it these delegated Microsoft Graph permissions: offline_access, Mail.ReadWrite, Mail.Send, Files.ReadWrite, Calendars.ReadWrite and Tasks.ReadWrite. Then sign in with your Microsoft account and accept the permissions.
Follow Create your OAuth client for the step-by-step registration, then Create a credential. The sign-in renews itself, so you do not need to sign in again for each run.
Example workflow
Section titled “Example workflow”- A Context Menu trigger adds “Remind me” to the right-click menu on any page.
- Get Page Metadata reads the page’s
titleandurl. - Microsoft 365, To Do → Create task, with Title
Read: {{ $input.title }}and Source URL{{ $input.url }}. Leave List ID empty to use your default list. - Browser Notification confirms the task was added.
Common issues
Section titled “Common issues”- “Microsoft Graph Error: access denied — your organization’s admin may have blocked this app…”. Your organization blocks the app, or one of the permissions needs an admin’s consent. Ask your Microsoft 365 admin to approve the app, or use an account that allows it.
- “Missing credential”. No credential is selected. Pick or create one in Credential.
- “Microsoft Graph Error: no To Do lists found for this account”. List ID is empty and the account has no To Do list. Open Microsoft To Do once to create one, or set List ID.
- The event is at the wrong time. Time Zone is empty, so the times were read as UTC. Set your time zone.
- The run is blocked in the web app. Microsoft 365 runs through the browser extension. Install the extension and allow Microsoft 365 for this workflow when asked, or run the workflow from the extension. See Running extension-only integrations in the web app.
Related nodes
Section titled “Related nodes”- Gmail and Google Calendar: the same jobs with a Google account.
- CSV: turn items into CSV text to put in File content.
- Todoist: tasks in Todoist instead of To Do.
- Http Request: call Microsoft Graph endpoints this node does not cover.