Dictionary - Object(contains SecureString) to SecureString Variable

Hi, I have a SecureString into a Dictionary<String,Object> and i’m sending this Dictionary into a Invoke Workflow File as an argument. In the invoked workflow i’m trying to call the SecureString Object and assign it into a SecureString variable but it doesn’t work.

image

image

I don’t know how to change this object that alreary contain a SecureString inside to a SecureString variable.

Please help me with this, Thank you very much.

2 Likes

Hey @KevinDS

When you add your Get from Dictionary activity, are you assigning the Value to a SecureString?

image

Regards
Troy

Hi @KevinDS,
You need to do the tryCast of object .

image

Regards
Balamurugan

4 Likes

Thank you for the answer. At the end I’ve used other way just using ctype to specify what kind of variable I can find into the object of the dictionary and it works.

ctype(dictionaryName(“key”), System.Security.SecureString)

5 Likes

Hi @KevinDS ,
It is good.

Regards
Balamurugan

1 Like