How to convert secure string to string in uipath

I am getting error while getting password from the orchestrator.
error was unable to convert secure string to string.

HI @shankar.arekonda.external

You can try with

password_String = New System.Net.NetworkCredential(string.Empty, Password).Password

Check out this docs

Regards
Gokul

HI @shankar.arekonda.external

Checkout this expression

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

Checkout this thread

Regards
Sudharsan

image
i am getting like this

in that secureStr instead of that use youe secure string variable name @shankar.arekonda.external

Hi @shankar.arekonda.external

Check out the image

Assign activity | Variable Type | Sting

Regards
Gokul


please find this

HI @shankar.arekonda.external

Your Out_SharedDrivePath is not declare.

First create an variable

Regards
Gokul

Check this docs @shankar.arekonda.external

Managing Variables.

You need to pass the the SecureString datatype variable in the expression , it seems like you are giving the string datatype Out_ShareDrivePath @shankar.arekonda.external

Regards
Sudharsan

I declared the variable

How we do that ?

Do you have any error @shankar.arekonda.external

yes ,


pls find the attachment.

@shankar.arekonda.external


Initialy you dont have secure string in your variable type so click browse for types and search for

System.Security.SecureString

Regards
Sudharsan

HI @shankar.arekonda.external

Check out the XAML file

SecureStringToString.xaml (5.1 KB)

image

Regards
Gokul

What is the Out_sharedrivepasswod datatype? @shankar.arekonda.external

If its Secure string change that to string

And can you tell from where do you get the sharedrive password?

Regards
Sudharsan

varaiable type is string .
Getting from orchestrator

Hey @shankar.arekonda.external

have you checked this workflow

It is from orchestrator means you have used get credentials to get the credentials ? @shankar.arekonda.external