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

传统“集成”活动

删除附件

UiPath.ServiceNow.Activities.DeleteAttachment

“删除附件”活动使用 ServiceNow附件 - DELETE API 删除特定文件 ( ObjectSysId )。

After deleting the attachment, the activity outputs the status of the request (success/failure information) in a ResponseStatus object (ServiceNowStatus) that you can use in subsequent activities (e.g., conditional logic).

工作方式

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

  1. 完成设置步骤。
  2. “ServiceNow 作用域”活动添加到您的项目中。
  3. Add the Delete Attachment activity inside the ServiceNow Scope activity.
  4. “输入”属性输入一个值。
  5. 输出属性创建并输入ResponseStatus变量。
    • 您的输入属性值已发送到附件 - 删除API。

    • API 会将 ResponseStatus 值返回到您的输出属性变量。

属性

常见

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

输入

  • 对象系统 ID - 要删除的附件的sys_id 。输入StringString变量。要获取sys_id值,您可以采用 ServiceNow唯一记录标识符 (sys_id)文档中显示的其中一种方法,也可以在 ServiceNow 用户界面中右键单击该记录,然后在弹出菜单中选择“复制 sys_id”选项。

其他

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

输出

  • 附件ID- 附件的sys_id 。输入String变量。您为此属性创建的变量可用作后续活动中的输入变量(例如,获取 ServiceNow 记录下载附件等)。
  • ServiceNowStatus - 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 论坛

保持更新