Now, let's read the credentials and store them in local variables for automation:
- To work with the credentials we stored, we have to use certain activities in UiPath. These activities are part of a package called Uipath.Credentials.Activities package. Let's add that first. Go ahead and click on Manage Packages in UiPath Studio. Then, within Official packages, look for this package. Once found, click on Install on the right-hand pane to install the package:
- To make the main workflow readable, we'll add a sequence within the Try block and call it Get Google API Credentials Sequence.
- Now, let's add two variables so that we can store the credentials. Call these strGoogleClientID, of the String type, and strGoogleSecretKey, of the SecureString type (System.Security.SecureString). Set the scope to a Try-Catch block.
- Next, we will use the Get Secure Credential UiPath activity...