Having trouble with `N/config` module. Getting a `...
# suitescript
c
Having trouble with
N/config
module. Getting a
null
error message back and I can't figure out what I'm doing wrong.
Copy code
let companyConfig = config.load({
        type: config.Type.COMPANY_PREFERENCES,
      });
companyConfig.setValue('custscript_username_abcdefg', username);
companyConfig.save();
This is all taking place in a suitelet.
"type":"error.SuiteScriptError","name":"UNEXPECTED_ERROR","message":"null anonymous(N/serverRecordService)
d
How did u solved this issue? Just curious thanks.
c
I deleted my script which hosted the parameters I was trying to set. Bonehead mistake on my part.
d
Ohh i see thanks.