Atividades
Mais recente
falso
Atividades do fluxo de trabalho
Last updated 3 de jul de 2024

Get Credential

Obtém um ativo do de credencial especificado usando um Nome do Ativo fornecido. Se o ativo de credencial não for global, ele deverá ser atribuído para o robô local a fim de ser recuperado.

Definição

Namespace: UiPath Activities.System.API

Montagem: UiPath.System.Activities.Api (em UiPath.System.Activities.Api.dll)

Sobrecarregas

  
GetCredential(String)

Gets a specified Orchestrator credential by using a provided asset name, and returns a username.

GetCredential(String userName, SecureString Password)

Gets a specified Orchestrator credential by using a provided asset name, and returns a username and a password.

GetCredential(String)

Gets a specified Orchestrator credential by using a provided asset name, and returns a username. For more information about credential assets, see About Assets.

string GetCredential(
	string assetName,
	string folderPath,
	out SecureString password,
	CacheStrategyEnum cacheStrategy,
	int timeoutMS
)string GetCredential(
	string assetName,
	string folderPath,
	out SecureString password,
	CacheStrategyEnum cacheStrategy,
	int timeoutMS
)
string assetName
The name of the asset for which to retrieve the username.
string folderPath
The path of the Orchestrator folder that stores the asset, if the the location is different from the folder where the process is running. Use / as the separator to indicate subfolders, for example "Finance/Accounts Payable".
out SecureString password

An output argument. The variable you want to use for storing the password, which you can later reference through this output parameter.

CacheStrategyEnum cacheStrategy
The duration for which the retrieved values are stored in the cache. By default, all requests are forwarded to Orchestrator. The available options are None and Execution. The Execution option caches the Orchestrator asset and uses it for the whole process execution.
int timeoutMS
The amount of time (in milliseconds) the method should wait before an error is thrown. The default value is 30000 milliseconds (30 seconds).

GetCredential(String, SecureString)

Gets a specified Orchestrator credential by using a provided asset name, and returns a username and a secure password. For more information about credential assets, see About Assets.

(string, SecureString) GetCredential(
	string assetName,
	string folderPath,
	int timeoutMS,
	CacheStrategyEnum cacheStrategy
)(string, SecureString) GetCredential(
	string assetName,
	string folderPath,
	int timeoutMS,
	CacheStrategyEnum cacheStrategy
)
string assetName
The name of the asset for which to retrieve the username.
string folderPath
The path of the Orchestrator folder that stores the asset, if the the location is different from the folder where the process is running. Use / as the separator to indicate subfolders, for example "Finance/Accounts Payable".
int timeoutMS

The amount of time (in milliseconds) the method should wait before an error is thrown. The default value is 30000 milliseconds (30 seconds).

CacheStrategyEnum cacheStrategy
The duration for which the retrieved values are stored in the cache. By default, all requests are forwarded to Orchestrator. The available options are None and Execution. The Execution option caches the Orchestrator asset and uses it for the whole process execution.

Was this page helpful?

Obtenha a ajuda que você precisa
Aprendendo RPA - Cursos de automação
Fórum da comunidade da Uipath
Logotipo branco da Uipath
Confiança e segurança
© 2005-2024 UiPath. All rights reserved.