SuiteScript 2.0 – Syntax
Hi All,
Netsuite's Script 1.0 and Script 2.0 are totally difference and You may feel discomfort in using SuiteScript 2.0 because of habit and ease of SuiteScript1.0 .
In SuiteScript2.0 , Netsuite uses simple Key/Value pair.
Ex:
the method
Netsuite's Script 1.0 and Script 2.0 are totally difference and You may feel discomfort in using SuiteScript 2.0 because of habit and ease of SuiteScript1.0 .
In SuiteScript2.0 , Netsuite uses simple Key/Value pair.
Ex:
the method
record.load
takes in a JavaScript object that consists of two key/value pairs: type: record.Type.SALES_ORDER
and id: 6
.var recObj = record.load({
type: record.Type.SALES_ORDER,
id: 6
});
1. Within the SuiteScript 2.0 API, all method inputs are named options. For example, the record.load signature is listed as record.load(options). 2. All SuiteScript 2.0 booleans take a value of true or false. All other boolean values (for example: T or F) throw an error. 3. Parameter types in SuiteScript 2.0 are strictly adhered to. You must pass in valid parameter types, as listed in the SuiteScript 2.0 help. SuiteScript 2.0 does not convert invalid parameter values to valid values. 4. Enumerations encapsulate common constants (for example, standard record types). 5. Sublist and column indexing begins at 0.
Thanks
Abhi
Comments
Post a Comment
Thanks for you message, please join us on Facebook and Linkedin