Anybody have much experience using GUIDs from form...
# suitescript
m
Anybody have much experience using GUIDs from form.addCredentialFields? Is it normal that I'm having to use guid.toUpperCase() to get my script to decrypt it? When I just include it normally in an authorization header, no decryption happens, it just sends the GUID itself instead of the encrypted credential.
n
What are you using it for? It is specifically used with SFTP module.
b
that sounds extra wrong, the guids are case sensitive
There are 2 ways of using guids in N/https • The first is in a https.SecureString or crypto.SecretKey • The second is as a placeholder that is replaced by N/https when you make a request. You need to use the credentials parameter when using this method An extra common mistake is to accidently convert the SecureString into a normal string when trying to mix the two. Don't do it, a SecureString converted to a string is useless and wont be replaced with a credential.
m
Thanks guys! yea, turned out to be a misleading error message. I had messed up and used a record type ID in the "restrictToScripts" setting rather than a script ID, and apparently that causes some very strange behavior in the backend.