Before using this specific activity, go to Manage Packages and select All Packages, look for “Credential”. Find the one that has UiPath on it.
Click Install and Save
Next, go to Windows Icon and Open Credential Manager
Add a Generic Credential
Go back to UiPath Studio, add the “Get Secure Credential” activity.
On the Target field, please put the name that you define in Credentials Manager
Create 2 variables for the username and password. Please ensure that the variable type for the password is SecureString
If you wish to use the password for SMTP purposes, you need to convert the securestring to string
Type this command to convert the secure string to string:
New System.Net.NetworkCredential(string.Empty, securestring).Password
Remember to change the securestring to the variable you defined earlier
The Write Line output shows the username and password in string format