Using credentials in orchestrator

orchestrator
credentials

#1

i?m triying using the user and password stored in a orchestrartor asset (type credential) to use the output user and password to send a mail (smtp). The password I get from the orchestrator is “SecurityString” type, while the type in the SMTP send mail is String. I try to convert the variable to String but don’t work (Error: Authentication failed). If I use String assets, it works (but then password is visible in orchestrator)
Any idea how to solve this issue? Many thanks.


#2

Hi,
Try this.

String plainStr = new System.Net.NetworkCredential(string.Empty, secureStr).Password