Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
addCredentialField and nlapiRequestURLWithCredentials, can't get them to work
NetSuite suggests to use addCredentialField to save password for a foreign site, and use nlapiRequestURLWithCredentials to send the password to the foreign site to authenticate so that the password is encrypted and not available for a developer to retrieve on NetSuite side. However, I was not able to get it to work.
Here is an example scenario, crafted according to NetSuite document examples:
1. my remote site password is abc123
2. my remote site is https://www.example.com
3. I create an addCredentialField field, and put the value 'abc123', NetSuite only gives me GUID '8ABE039DC0DF4453156805CDD18D1E26' when I try to retrieve the value, which is fine and by design.
0