Microsoft OneDrive 节点(Microsoft OneDrive node)#
使用 Microsoft OneDrive 节点可以在 Microsoft OneDrive 中自动化工作,并将 Microsoft OneDrive 与其他应用集成。n8n 内置支持广泛的 Microsoft OneDrive 功能,包括创建、更新、删除以及获取文件和文件夹。
🌐 Use the Microsoft OneDrive node to automate work in Microsoft OneDrive, and integrate Microsoft OneDrive with other applications. n8n has built-in support for a wide range of Microsoft OneDrive features, including creating, updating, deleting, and getting files, and folders.
本页列出了 Microsoft OneDrive 节点支持的操作列表以及更多资源的链接。
🌐 On this page, you'll find a list of operations the Microsoft OneDrive node supports and links to more resources.
凭证
请参阅 Microsoft 凭据 了解有关设置身份验证的指南。
政府云支持
如果你正在使用政府云租户(美国政府、美国国防部或中国),请确保在 Microsoft 凭据配置中选择适当的 Microsoft Graph API 基础 URL。
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
操作(Operations)#
- 文件
- 复制文件
- 删除文件
- 下载文件
- 获取文件
- 重命名文件
- 搜索文件
- 共享文件
- 上传最大 4MB 的文件。
- 文件夹
- 创建文件夹
- 删除文件夹
- 获取子项(获取文件夹内的项目)
- 重命名文件夹
- 搜索文件夹
- 共享文件夹
模板和示例(Templates and examples)#
相关资源(Related resources)#
有关该服务的更多信息,请参阅 微软 OneDrive API 文档。
🌐 Refer to Microsoft's OneDrive API documentation for more information about the service.
查找文件夹 ID(Find the folder ID)#
要对文件夹执行操作,你需要提供 ID。你可以在以下位置找到此 ID:
🌐 To perform operations on folders, you need to supply the ID. You can find this:
- 在文件夹 URL 中
- 通过使用节点进行搜索。如果使用 MS 365(在后台 OneDrive 使用 SharePoint),你需要这样做:
- 选择 资源 > 文件夹。
- 选择 操作 > 搜索。
- 在 查询 中,输入文件夹名称。
- 选择 执行步骤。n8n 会运行查询并返回关于该文件夹的数据,包括包含文件夹 ID 的
id字段。