UiPath Documentation
activities
latest
false
传统“集成”活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

回复

用于在 Slack 中回复特定消息的活动

UiPath.Slack.Activities.Messages.Reply

概述​

回复活动使用 Slack chat.postMessage API 回复特定消息 ( Message )。

发送回复后,活动将在Message对象 (回复) 中返回其属性,您可以在后续活动中将其用作输入属性变量(例如获取回复中的Message.Text等)。

工作方式​

以下步骤和消息序列图是活动从设计时(即活动依赖项和输入/输出属性)到运行时如何工作的示例。

  1. 完成设置步骤。

  2. 将“Slack 作用域”活动添加到项目中。

  3. Complete one of the following two options (A or B):

    A. 在“Slack 作用域”活动中添加“ 搜索” 活动。

    B. 在 Slack 作用域 活动中添加 获取消息 活动。

  4. Add the Reply activity after the Search or Get Messages activity.

  5. (可选)为输入属性输入值。

  6. 为“输出”属性创建并输入Message变量。

  7. 运行活动。

在活动正文中​

  • Message - The message that you want to reply to. Enter a Message variable.
    • 要输入 变量,请使用Message 搜索 活动或 获取消息 活动中的 消息 输出属性变量。
    • When using the Messages output property, be sure to specify which item in the array that you want to use (e.g., slackMessages(0))
  • File - The path to a local file that you want to attach in your reply. Enter a String or String variable. Either the File or Text property is required. You can enter values in both properties.
  • Text - The body of text that you want to send in your reply. Enter a String or String variable. Either the File or Text property is required. You can enter values in both properties.
  • As User - Send this reply as user or bot. Defaults to true (send as user). Enter a Boolean or Boolean variable. Defaults to true if not specified.
  • 回复- 您的回复作为Message对象返回。输入Message变量。如果您计划使用活动来处理数组输出,请选择“UiPath.Slack.Models.Message”作为类型参数。

属性​

常见​

  • “显示名称”- 活动的显示名称。此字段仅支持 Strings 或 String 变量。

其他​

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

输出​

  • ResponseStatus - The status of the request (success/failure information). Enter a ResponseStatus variable (UiPath.BAF.Models.ResponseStatus). The ResponseStatus object includes three properties that you can use in other activities.
    • Success - Boolean - Specifies whether the API request was successful.
    • ErrorCode - String - The response error if the API request is unsuccessful (Success=False).
    • Message - String - The error message.
  • 概述​
  • 工作方式​
  • 在活动正文中​
  • 属性​
  • 常见​
  • 其他​
  • 输出​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新