You can check that the password string is correct by converting the secure string to string and then using a write line. Then you can check the length is correct.
To convert:
password = new System.Net.NetworkCredential(string.Empty, securePassword).Password
But the goal here is to have a value in the variable supposed to retrieve the output from GetAppCredentials and that it stay secure, I do not want to unsecure a password.
And I did try your conversion but same result, the length is still 0.
So any idea why I cannot have a value after the binding?
Sorry maybe I wasn’t clear, I just meant to use this to check that the password string is correct, becasue sounds like it’s not quite write. After converting to string you can check if correct by using write line.
As shown in the screenshot, I do correctly retrieve the credential from the orchestrator (the password is 12 characters long), but when I try to use it in the workflow summoning the getAppCredentials one, I do have the correct entry for the username but the password is empty.
Ah I see, maybe try recreating the invoke in which you grab the cred values. I’m sure you’ve already done this but just make sure no other activties are resetting the value of the password variable.