hi all, trying to work with the API Secrets, I nee...
# suitescript
j
hi all, trying to work with the API Secrets, I need it for a 1.0 library and I understand it's only available to 2.x scripts, so a suitelet bridging the two was one option. has anyone tried something similar before?
j
you can call SS2.0 from SS1.0 but it’s weird.
j
@jen interesting, got any documentation on that?
j
I’ve done it myself…
Copy code
require([], function() {


	// your SS2 calls here


});
add whatever modules you need to your require obviously
j
sorry, I don't think I follow. is within my SS1.0 script that I include a require statement?
b
use the ss1 equivalent, a credential field
use addCredentialField on an nlobjForm (ideally from a suitelet)
which creates a field that you can set with your credential
netsuite will replace the value of the field with a GUID, which you can use like a secret
using nlapiRequestURLWithCredentials