activities
latest
false
Workflow Activities
Last updated Oct 31, 2024

GetCredential

Gets a specified credential asset by using a provided Asset Name. If the credential asset is not global, it must be assigned to the local robot in order to be retrieved.

Definition

Namespace: UiPath.Activities.System.API

Assembly: UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

Overloads

  
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?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.