- 概述
- Excel
- 发行说明
- 关于 Excel 活动包
- 项目兼容性
- 受支持的字符编码
- 项目设置
- 添加或更新 Excel 敏感性标签
- 附加范围
- 自动填充
- 自动调整范围
- 更改透视表数据源
- 清除工作表/范围/表格
- 复制/粘贴范围
- 创建透视表
- 删除列
- 删除行
- 删除工作表
- 复制工作表
- 导出为 CSV
- 填充范围
- 筛选
- 筛选条件透视表
- 查找数据的首行/末行
- 查找/替换值
- 对每个 Excel 行
- 对每个 Excel 工作表
- 格式化为表格
- 设置单元格的格式
- 获取单元格颜色
- 获取 Excel 图表
- 获取 Excel 敏感性标签
- 获取选定范围
- 插入列
- 插入图表
- 插入行
- 插入工作表
- 调用 VBA
- 查找
- “匹配”功能
- 保护工作表
- 读取单元格公式
- 读取单元格值
- 读取范围
- 刷新 Excel 数据连接
- 刷新透视表
- 删除重复项
- 重命名工作表
- 运行电子表格宏
- 保存 Excel 文件
- 将 Excel 文件另存为
- 将 Excel 文件保存为 PDF 格式
- 选择范围
- 范围排序
- 分列
- 取消保护工作表
- 更新 Excel 图表
- 使用 Excel 文件
- VLookup
- 写入单元格
- 写入 CSV
- 将数据表写入 Excel
- Google Workspace
- 发行说明
- 关于“Google Workspace”活动包
- 项目兼容性
- 添加参加者
- 创建活动
- 删除活动
- 修改活动
- 搜索活动
- 使用 Google 云端硬盘
- 共享文件
- 删除文件权限
- 获取文件权限
- 更新文件权限
- 复制文件
- 创建文件夹
- 删除文件
- 下载文件
- 查找文件和文件夹
- 获取文件信息
- 移动文件
- 上传文件
- 创建文档
- 创建新电子表格
- 获取邮件消息
- 发送邮件消息
- 更改标签
- 使用 Google 电子表格
- 添加/删除列
- 添加删除行
- 自动填充范围
- 添加新工作表
- 附加行
- 批量电子表格更新
- 复制工作表
- 复制粘贴范围
- 删除范围
- 删除工作表
- 获取单元格颜色
- 获取工作表
- 读取单元格
- 读取列
- 读取范围
- 读取行
- 重命名工作表
- 写入单元格
- 写入范围
- 清除范围
- 下载电子表格
- 使用 Google 文档
- 批量文档更新
- 获取文档
- 获取文本索引
- 插入文本
- 替换文本
- 读取所有文本
- 创建脚本项目
- 获取项目内容
- 上传脚本文件
- 创建部署
- 运行脚本
- 邮件
- Microsoft 365
- 发行说明
- About the Microsoft 365 activity package
- How to connect to Microsoft 365 activities
- 项目兼容性
- Set up your Microsoft 365 Azure application
- 设置 Integration Service 连接器
- Microsoft Office 365 作用域
- 添加工作表
- 附加范围
- 清除范围
- 复制范围
- 复制工作表
- 创建工作簿
- 删除范围
- 删除工作表
- 获取单元格颜色
- 获取工作表
- 读取单元格
- 读取列
- 读取范围
- 读取行
- 重命名工作表
- 写入单元格
- 写入范围
- 设置范围颜色
- 创建表格
- 获取表格范围
- 插入列
- 删除列
- 插入行
- 删除行
- VLookup 范围
- 使用 OneDrive 和 SharePoint
- 复制文件/文件夹
- 创建文件夹
- 删除文件/文件夹
- 下载文件
- 将文件导出为 PDF
- 查找文件和文件夹
- 获取文件/文件夹
- 移动文件/文件夹
- 上传文件
- 共享文件/文件夹
- 遍历每个文件/文件夹
- 转发邮件
- 获取邮件
- 移动邮件
- 发送邮件
- 回复邮件
- 删除邮件
- 设置邮件类别
- 添加附件
- 添加参加者
- 添加地点
- 创建活动
- 删除活动
- 查找会议时间
- 获取日历
- 修改活动
- RSVP
- 搜索活动
- 创建组
- 删除组
- 获取组
- 列出组
- 创建存储桶
- 删除存储桶
- 列出存储桶
- 列出存储桶任务
- 创建计划
- 获取计划
- 列出计划
- 创建任务
- 删除任务
- 获取任务
- 列出任务
- 更新任务
- 遍历列表
- 获取列表信息
- 遍历列表项目
- 删除列表项目
- 添加列表项目
- 更新列表项目
- 获取列表项目
- 演示文稿
- Word
Set up your Microsoft 365 Azure application
要启用 Microsoft 365 传统活动,您的应用程序必须与 Microsoft 身份平台集成,并获配正确的 Microsoft Graph API 权限。
要集成应用程序、分配权限并开始构建自动化项目,请完成以下步骤:
- 注册您的应用程序。
- 添加 API 权限。
- 构建项目。
注册 Microsoft 365 应用程序后,Azure Active Directory 会分配您在Microsoft 365 作用域活动中输入的唯一应用程序(客户端)ID,以及您分配权限的服务(例如,文件、邮件、日历)。
- 使用您的个人、工作或学校 Microsoft 365 帐户登录 Azure 门户。
- 在左侧导航面板中,单击“ Azure Active Directory”。
- Azure Active Directory 页面打开后,单击“ 应用程序注册” 。
-
单击顶部导航栏中的“ + 新注册 ”。
- 输入应用程序的 名称 (例如,“Office365App”)。
-
Under Supported account types, select the option that applies to you. For more information about which option to select, refer to Who can sign in to you app?:
- Accounts in this organizational directory only - Use this option if your target audience is internal to your organization. This represents a single tenant application.
- Accounts in any organizational directory (Any Azure AD directory - Multitenant) - Use this option if your target audience is business or educational customers. This represents a multitenant application.
- Accounts in any organizational directory and personal Microsoft accounts (e.g. Skype, Xbox) - Use this option to target the widest set of Microsoft identities. This represents a multitenant application.
-
Under Redirect URI (optional), enter a URI address (if applicable). The Microsoft Authentication Library (MSAL.NET) uses a default redirect URI:
https://login.microsoftonline.com/common/oauth2/nativeclient
. This value will likely work for you when using the Interactive Token authentication type.- Your selection is dependent on your authentication type. For more information on this topic, see How to connect to Microsoft 365 activities).
- In our example, the organization supports multi-tenant authentication and can only use the Interactive Token authentication type which requires a redirect URI.
- If you use Interactive Token and the default Microsoft Redirect URI, you must add a platform of type Mobile and desktop applications. For more information, see Configure platform settings in the Microsoft documentation.
- If your authentication type is Integrated Windows Authentication or Username and Password, you don't need to register a redirect URI for your application. These flows do a round trip to the Microsoft identity platform v2.0 endpoint, and your application won't be called back on any specific URI.
-
When working with Microsoft 365 in a UiPath Studio project targeting .NET 5.0, add
http://localhost
to the Redirect URI of your custom applications.有关详细信息,请参阅 Microsoft 标识平台文档中的 桌面应用程序注册 。
-
Select Register. An example configuration is available in the image below.注意: 此设置只是一个示例。 请按照文档中所述的步骤操作,并根据组织的策略进行选择。
操作完毕! 现在,我们向已注册的应用程序添加 API 权限。
- 在已注册的应用程序页面( Azure 门户 > Azure Active Directory > 应用注册 > Office365App )中,在左侧导航面板中选择“ API 权限”。
- “API 权限”页面打开后,单击“ + 添加权限 ”(这将打开“ 请求 API 权限 ”窗口)。
- 在“ 选择 API” 下,单击“ Microsoft API ”(默认情况下可能处于打开状态)。
-
在“ 常用 Microsoft API”下,单击“ Microsoft Graph”。
-
Under What type of permissions does your application require?, click Delegated permissions or Application permissions to show the list of permissions. Select Application permissions if you are using ApplicationIdAndSecret or ApplicationIdAndCertificate authentication type. The other authentication types available in Microsoft 365 Scope activity require Delegated permissions.
有关权限类型的更多信息,请参阅 Microsoft Azure 文档中的 配置客户端应用程序以访问 Web API 。
-
使用搜索栏或向下滚动按字母顺序排列的列表,然后选择以下权限:Note: These permissions are not all mandatory. The provided list represents the complete set of permissions required to run all Microsoft 365 activities. You can restrict permissions depending on your particular use case. Check out the activities documentation pages to learn what permissions they need.
-
日历
- 日历. 读取
- Calendars.ReadWrite
-
文件
- 文件。读取
- 文件读取全部
- Files.ReadWrite
- Files.ReadWrite.All
-
网站
- 站点。只读。全部
- Sites.ReadWrite.All
-
邮件
- 邮件读取
- 邮件读写
- 邮件.发送
- 用户
- User.Read
-
Shared (scopes needed to access resources that are shared with, but not owned by, the user.)
- 邮件读取共享
- 邮件读写共享
- 邮件.发送.共享
- Calendars.Read.Shared
- Calendars.ReadWrite.Shared
-
Select Add permissions to return to your list of API permissions.
-
-
Make sure your API permissions include your added Calendars, Files, User, and Mail permissions.
-
创建一个新的自动化项目。
-
打开 UiPath Studio。
-
Under New Project, click Process. This opens a New Blank Process window.
-
输入项目 名称、 位置和 说明。
-
选择“ 兼容性”。 默认情况下选择“Windows”。
-
单击“创建”。
-
-
安装 UiPath.MicrosoftOffice365.Activities 包。
- From the Design ribbon, select Manage Packages.
- 在“ 所有包”下的“ 搜索” 栏中,输入 Office 365 或 Microsoft。
- Select the package version you want, then select Install.
- 单击保存按钮。
操作完毕!现在,您已完成设置,可以开始将 Microsoft 365 活动添加到项目中。
如需动手学习体验并快速开始使用这些活动,请参阅 快速入门 指南。 这些指南提供分步说明,以帮助您创建不同活动的工作示例,以便您可以验证与已注册应用程序的连接并熟悉输入/输出属性。
To learn more about the Microsoft 365 activities (including example property inputs/outputs), see the Classic activities for a complete list and links to the activity detailed pages.