bobby
(Bob Master)
October 29, 2019, 10:48am
1
Hi Guys
I am aware this has been asked in the forums previously but I am having trouble with it. How do place a default within a secure string variable type not using get credential? I have tried using the following:
Not sure how to fix this. Can someone help please.
2 Likes
hi
you were almost done
this expression will give us string output
so use a string variable in the left side of assign activity
Cheers @bobby
1 Like
bobby
(Bob Master)
October 29, 2019, 10:54am
3
I want to pass this to secure string. So how do I create a secure string default value?
1 Like
so in that case pass directly the adPassword variable and no need of this expression
as it is already a secure string variable
Cheers @bobby
1 Like
bobby
(Bob Master)
October 29, 2019, 11:00am
5
what I am so confused. Pass it in directly. I cannot do that it gives me the save error? So all I want to do is populate a secure string value in a uipath activity with a value. So first I need a string with a value to be converted to secure string and then assign the activity with the secure string. I am making this too complex. Sorry you might need to dump this down for me. I am lost?
1 Like
got it
hope this thread would guide you
Hi, if you check the instructions for Create Client Security hash it says:
“Unit test the created file using the default values of the arguments.” It does not say “Variables”, it says Arguments. So what you DO NOT want to do is: try and create a SecureString for the password variable by setting it to something like new System.Security.SecureString(Char(A),1) or doing Assign variable with .AddChar()
[Dont]
Instead: create a new asset in Orchestrator and call it “System1_Wrong_Credentials” and…
kindly let know for any queries or clarification
Cheers @bobby
1 Like
bobby
(Bob Master)
October 29, 2019, 11:43am
7
This uses orchestrator get credentials and I want to do it without using that method?
1 Like
Fine
in that case we need a source of secure string
we can get that from windows credential
Cheers @bobby
amaresan
(Amaran)
October 29, 2019, 2:05pm
9
@bobby
Correct me if I’m wrong … As per my understanding you have to convert String to Secure string
for that use below code in assign actvity
new system.Net.NetworkCredential(“”, “Test”).SecurePassword
Test is your string otherwise you can able to assign string variable as well
13 Likes
bobby
(Bob Master)
November 4, 2019, 11:33am
10
Thanks @amaresan . That worked like a charm!
1 Like
system
(system)
Closed
November 7, 2019, 11:33am
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.