- 发行说明
- 概述
- 入门指南
- UiPath 市场供应商
- UiPath Marketplace 客户
- 发布准则
- 即用型自动化发布准则
- 解决方案加速器发布准则
- Integration Service 连接器的发布准则
- Process Mining 应用程序模板发布准则
- 安全性与 IP 保护
- 其他 UiPath 列表
- 连接器
- 如何创建活动
- 构建集成

Marketplace 用户指南
获取频道
概述
The Get Channel activity calls the Microsoft Graph GetChannel API to retrieve the properties and relationships of a specified channel (ChannelId) from a team (TeamId).
After retrieving the channel, the activity returns its properties and relationships in a Channel object (Channel) that you can use as input variables in subsequent activities (e.g., Channel.Id in Get Messages, Send Message, etc.).
Unlike the Get Channels activity, which searches and returns a list of channels(Channel[]) using your specified QueryOptions, the Get Channel activity retrieves a single, specified channel (Channel) using the provided ChannelId and TeamId. This activity is not intended to be used to search for a channel like the Get Channels activity and can only be used when the Channel.Id value is known.
工作方式
The following steps and message sequence diagram is an example of how the activity works from design time (that is, the activity dependencies and input/output properties) to run time.
- 完成设置步骤。
- Add the Microsoft Teams Scope activity to your project.
- Add an activity or run an external process that outputs a
Team.Idvalue (e.g., Get Teams) AND an activity or external process that outputs aChannel.Idvalue (e.g., Create Channel). - Add the Get Channel activity inside the Microsoft Teams Scope activity.
- (可选)为输入属性输入值。
- Create and enter a
Channelvariable for your Output property. - 运行活动。
-
Your input property values are sent to the GetChannel API.
-
API 会将
Channel值返回到您的输出属性变量。
-
属性
将此活动添加到 UiPath Studio 中的项目时,会指定以下属性的值。

常见
显示名称
活动的显示名称。
| 属性 | 详细信息 |
|---|---|
| 类型 | String |
| 必填 | 是 |
| 默认值 | 获取频道 |
| 允许的值 | 输入 String 或 String 变量。 |
| 注意 | 不适用 |
输入
团队 ID
要从中检索频道的 Team 对象的 ID。
| 属性 | 详细信息 |
|---|---|
| 类型 | String |
| 必填 | 是 |
| 默认值 | 空白 |
| 允许的值 | 输入 String 或 String 变量。 |
| 注意 | To get the Team.Id value, use an external process or activity that includes the Team.Id value in its output (for example, Create Team or external API call) |
频道 ID
要检索的 Channel 对象的 ID。
| 属性 | 详细信息 |
|---|---|
| 类型 | String |
| 必填 | 是 |
| 默认值 | 空白 |
| 允许的值 | 输入 String 或 String 变量。 |
| 注意 | To get the Channel.Id value, use an external process or activity that includes the Channel.Id value in its output (for example, Create Channel or external API call) |
其他
私有
如果已选择,变量和参数的值将不会在 Verbose 级进行记录。
| 属性 | 详细信息 |
|---|---|
| 类型 | 复选框 |
| 必填 | 否 |
| 默认值 | 未选中 |
| 允许的值 | 已选择或未选择 |
| 注意 | 不适用 |
输出
频道
表示检索到的频道的 Channel 对象。
| 属性 | 详细信息 |
|---|---|
| 类型 |
|
| 必填 | 否(如果您计划在后续活动中使用输出数据,则为必填项) |
| 默认值 | 空白 |
| 允许的值 | 输入Team变量。 |
| 注意 |
|
示例
下图显示了活动依赖关系和输入/输出属性值的示例。
For step-by-step instructions and examples, see the Quickstart guides.
