Using asset for email account

I created a credential type asset to save an email access, which I use to trigger at certain points in the process.

I didn’t want to have to change the password manually in the project, whenever the email password is changed, so I created an asset.
I am using the get credential activity to search for the asset information and pasting the output into two variables that I use to log in to the email activity.
Eat the user variable without problems, but the password variable is in the SecureString format and the email activity only accepts the String type, as the system does not make implicit conversions, I tried to use a ToString, but it didn’t work out.

Does anyone know how I can do this conversion?

This issue has been resolved in the thread below.

1 Like

Use this below code, @tainan.ramos
new System.Net.NetworkCredential(string.Empty, YourSecureString).Password
use this in type into activity.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.