Skip to content
Various scripts I release to the Netsuite developer community
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AJAXFunctions.d.ts
AJAXFunctions.js
AJAXFunctions.ts
AJAXFunctionsTS.d.ts
LICENSE
README.md
SuiteScriptAPITS.d.ts
batchProcess.d.ts
batchProcess.js
batchProcess.ts
calcNSWBusinessDays.js
calculateShippingDates.js
exposeImageNames.js
exposeImageNames.ts
exposeItemTemplate.js
exposeItemTemplate.ts
kotnMergeTemplate.js
simpleBatch.d.ts
simpleBatch.js
simpleBatch.ts
statecountries.d.ts
statecountries.js
statecountries.ts

README.md

KotN-Netsuite

Various scripts I release to the Netsuite developer community. The *.ts are TypeScript files. I find Typescript quite helpful in dealing with the Netsuite API. Not great to use if you have a number of developers in your account. All the *.d.ts files are the type definitions used by typescript to import type signatures for external APIs.

  • AJAXFunctions.js is a sort of legacy thing I wrote back before Netsuite updated their JavaScript engine to include the new array functions. The useful thing about it now is KOTNUtil.sendJSResponse that is useful for dealing with SuiteScript responses as JSON and automatically dealing with some common jsonp callback patterns

  • simpleBatch.js handles governance management for long running Scheduled Scripts

  • batchProcess.js handles governance for re-scheduling a scheduled script. Most use cases now superseded by SimpleBatch.js

  • kotnMergeTemplate is meant as a library to provide a drop-in replacement for scripts using nlapiMergeRecord. This script detects whether the template Id refers to an old CRMSDK template or a Scriptable Template and provides a file similar to the one returned from nlapiMergeRecord.

  • exposeImageNames and exposeItemTemplate are the sources for a couple of bundles 156149 and 41518 respectively. These copy some values from item record fields to expose them for search criteria and results.

  • calc*Dates functions are examples of doing business day calculations. Originally written to calculate expected delivery dates. calcNSWBusinessDays includes Easter and mandated days that don't necessarily follow a standard date or something like 2nd Monday of the month pattern.

You can’t perform that action at this time.