Hi , how to get Value from a password field using ...
# suitescript
s
Hi , how to get Value from a password field using SS2.0 ? I tried getting using getValue method . It returned some encrypted txt . So how can I get the original password value in my code. ? Thanks in advance.
p
You will probably need N/crypto Module
👍 1
c
Whatever you are doing, you probably don't want to do …
s
But , I need that password to consume an api from my code .
s
you cannot retrieve values of password field, you can only compare / validate with another value. What you should look for is most probably API Secrets if it is available in the API you'll be using.
m
@Selcuk Dogru Do you know if API Secrets are copied from production to sandbox on a refresh?
s
@Mike Robbins yes they are, and if you've integrations you should build logic in advance what to do in case of running in SandBox
👍 2
d
so maybe a sandbox_secret and production_secret?