WRT your new question, have a look in the Help Cen...
# suitescript
m
WRT your new question, have a look in the Help Center for SuiteScript 2.0 Custom Modules