活动
最新
False
横幅背景图像
工作流活动
上次更新日期 2024年4月22日

设置凭据

用于更新指定凭据资产的值,该资产已在 Orchestrator 中可用,无论是全局资产还是一个机器人资产。 单击此处以获取有关资产的详细信息

请注意,要执行此方法,机器人角色需要对资产具有“编辑” 权限。 运行此方法时,它将使用与执行该方法的机器人相同的身份验证上下文,从而继承其权限。

定义

命名空间: UiPath Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

重载

  
SetCredential(String, String, String)更新指定凭据资产的值。
SetCredential(String, String, String, String)在指定的 Orchestrator 文件夹路径中更新指定凭据资产的值。
SetCredential(String, String, String, String, Int32)在指定的 Orchestrator 文件夹路径中更新指定凭据资产的值,并配置 TimeoutMS

SetCredential(String, String, String, String, Int32)

在指定的 Orchestrator 文件夹路径中更新指定凭据资产的值,并配置 TimeoutMS
void SetCredential(
	string userName,
	string password,
	string credentialName
)void SetCredential(
	string userName,
	string password,
	string credentialName
)
userName 字符串
指定凭据资产的新用户名。
password 字符串
指定凭据资产的新密码。
credentialName 字符串
要更新的凭据资产的名称。 该名称必须与 Orchestrator 中的名称完全相同,且要使用相同的大小写。

SetCredential(String, String, String, String)

在指定的 Orchestrator 文件夹路径中更新指定凭据资产的值。

void SetCredential(
	string userName,
	string password,
	string credentialName,
	string folderPath
)void SetCredential(
	string userName,
	string password,
	string credentialName,
	string folderPath
)
userName 字符串
指定凭据资产的新用户名。
password 字符串
指定凭据资产的新密码。
credentialName 字符串
要更新的凭据资产的名称。 该名称必须与 Orchestrator 中的名称完全相同,且要使用相同的大小写。
folderPath 字符串
凭据资产所在的文件夹路径(可能与运行流程的文件夹不同)。 此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。 例如"Finance/Accounts Payable"

SetCredential(String, String, String, String, Int32)

在指定的 Orchestrator 文件夹路径中更新指定凭据资产的值,并配置 TimeoutMS
void SetCredential(
	string userName,
	string password,
	string credentialName,
	string folderPath,
	int timeoutMS
)void SetCredential(
	string userName,
	string password,
	string credentialName,
	string folderPath,
	int timeoutMS
)
userName 字符串
指定凭据资产的新用户名。
password 字符串
指定凭据资产的新密码。
credentialName 字符串
要更新的凭据资产的名称。 该名称必须与 Orchestrator 中的名称完全相同,且要使用相同的大小写。
folderPath 字符串
凭据资产所在的文件夹路径(可能与运行流程的文件夹不同)。 此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。 例如"Finance/Accounts Payable"
timeoutMS Int32
指定等待时间 (以毫秒为单位)。如果超出该时间活动未运行,就会引发错误。默认值为 30000 毫秒 (30 秒)。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.