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.
Credentials
请参阅 Microsoft 凭据 以了解有关设置身份验证的指导。
¥Refer to Microsoft credentials for guidance on setting up authentication.
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
- 文件
¥File
-
复制文件
¥Copy a file
-
删除文件
¥Delete a file
-
下载文件
¥Download a file
-
获取文件
¥Get a file
-
重命名文件
¥Rename a file
-
搜索文件
¥Search a file
-
共享文件
¥Share a file
-
上传最大 4MB 的文件。
¥Upload a file up to 4MB in size
-
文件夹
¥Folder
-
创建文件夹
¥Create a folder
-
删除文件夹
¥Delete a folder
-
获取子项(获取文件夹内的项目)
¥Get Children (get items inside a folder)
-
重命名文件夹
¥Rename a folder
-
搜索文件夹
¥Search a folder
-
共享文件夹
¥Share a folder
模板和示例#
¥Templates and examples
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Microsoft OneDrive API 文档。
¥Refer to Microsoft's OneDrive API documentation for more information about the service.
查找文件夹 ID#
¥Find the folder ID
要对文件夹执行操作,你需要提供文件夹 ID。你可以找到此内容:
¥To perform operations on folders, you need to supply the ID. You can find this:
- 在文件夹 URL 中
¥In the URL of the folder
- 通过节点搜索。如果你使用 MS 365(OneDrive 在后台使用 SharePoint),则需要执行以下操作:
¥By searching for it using the node. You need to do this if using MS 365 (where OneDrive uses SharePoint behind the scenes): 1. 选择“资源”>“文件夹”。
1 | |
-
选择“操作”>“搜索”。
¥Select Operation > Search. 3. 在“查询”中,输入文件夹名称。
¥In Query, enter the folder name. 4. 选择“执行步骤”。n8n 运行查询并返回文件夹数据,其中包括一个包含文件夹 ID 的
id字段。¥Select Execute step. n8n runs the query and returns data about the folder, including an
idfield containing the folder ID.