could you have it as a paramater on the script, e....
# suitescript
s
could you have it as a paramater on the script, e.g have the feature then select the subsidiaries that use the feature
m
You can't have multiselect script parameters. You would need to do something like a comma separated list of internal ids or a custom field on the subsidiary instead
c
@michoel having a config record linked in the param achieves the same thing - doesn't stop having to litter the code with conditionals to check which switches are enabled though.
Also - found your github typescript for SuiteScript repo - are there any more resources around TS for NS/SS?
m
Which repo are you referring to?
You pointed to it as an example of TS
m
Ah right, I'm guessing you have seen the actual typings project? https://github.com/headintheclouddev/typings-suitescript-2.0
I've actually moved away from TypeScript for NetSuite development. The reasons I used it previously were developer experience (proper intellisense, "compile-time" warnings/errors) and modern JS syntax. I've found I can get 95% of that using SS2.1, a jsconfig and jsdocs that use the hitc typings and eslint
c
We're still deciding if we want to move to TS or not - SDF and 2.1 did change a lot for the better so it's not such a clear decision anymore.
What other libraries are you regularly using e.g. lodash?
s
c
@Sandii We haven't introduced that to our code yet because we're worried about leaving clients with scripts that aren't easily maintained by other SS devs. The complexity of what we are doing it generally increasing though so we're now considering it.
m
Mostly lodash I guess