How to overcome https.createSecureString() in 2.1?...
# suitescript
k
How to overcome https.createSecureString() in 2.1? In debugger it fails with error msg: "You have entered an invalid type argument: nlobjCredentialBuilder". Ok, I guess, it doesn't work in debugger. When running in a suitelet (even used a copy of the example from SuiteAnswers Create an Authentication Header using a SecureString) it always returns empty object {}. I can't call .convertingEncoding method with {}. What am I missing? Or this is not baked yet?
c
Sounds broken, but can you share your exact code please?
k
c
Which one? "Create a form field with a credential field sample" ?
k
Create an Authentication Header using a SecureString
c
oh, yes. you said in your original message 😄 I'll try it myself and see if it works
have you changed the nameToken & passwordToken variables so that it'll work?
b
SecureString.convertEncoding does not have
ing
in its name
👍 1
k
omg
c
Legend Battk 🙂
k
da best