Countering the error

WHEN I’M TRYING TO USE THE passowrd vairable in login activity i’m getting the error i cannot convert secure string into string as it is incompatible with the properties

In the variables pannel change the data type of password variable to secure string

@Harshit_Rai ,
Use below activity to retrieve password from credential asset
image

Hope it helps you

Hi @Harshit_Rai

In sequence workflow there is a password variable which is in string you have to change it to secure string.

Make sure to change the datatype to secure string.

Hope it helps!!

Hi @Harshit_Rai

Try this

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

this is the one I’m currently using, as I have created my own package and am now trying to use it so I’m not able to rectify it

this is the one I’m currently using, as I have created my own package and am now trying to use it so I’m not able to rectify it

In error it was showing not able to change from securestring to string we have to give the string
Change the variable datatype to string and in value give like this
Password = New System.Net.NetworkCredential(“”,“Give your password here”).Password

Hope it works!!

Can we connect for a few minutes if it’s okay with you?

Yeah sure @Harshit_Rai
Send me the google meet request.

Please Join