is there any reason to use `N/config` for config.T...
# suitescript
d
is there any reason to use
N/config
for config.Type.USER_PREFERENCES versus
N/runtime
runtime.getCurrentUser().getPreference() ? the latter seems to be way faster, so I cant see a reason to use config.load() just curious what the general consensus was
other than potentially needing to do config.load().getText() for some reason, that was the only thing I could think of , the N/runtime version appears to always just give the value. Thanks
s
I dont think you get certain things from runtime, like the date format from the system settings, company name/information
I only use config when absolutely necessary bc it usually requires the script to be on an elevated access since most users dont have access to company settings.
d
hmm good to know on the permission access portion, didn't think of that. agreed though, I've always been favoring runtime. in the case I just needed DATEFORMAT & TIMEZONE which it seemed to provide just fine