Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
How to execute suitescript 2.1 code in POSTMAN?
Hi can anyone help me execute how to run a suitescript 2.1 code in POSTMAN below is sample code.
require(['N/record'], function(record){
function createBomRevision(values, items){
var rec = record.create({
type: 'bomrevision', isDynamic: true
});
for (var key in values){
if (values.hasOwnProperty(key)){
rec.setValue({
fieldId: key,
value: values[key]
});
}
}
for (var itemIndex in items){
rec.selectNewLine({
sublistId: 'component'
});
for (var key in items[itemIndex]){
if (items[itemIndex].hasOwnProperty(key)){
rec.setCurrentSublistValue({
sublistId: 'component',
fieldId: key,
value: items[itemIndex][key]
});
}
}
rec.commitLine({sublistId: 'component'});
}
return rec.save({enableSourcing: false, ignoreMandatoryFields: false});
}
var bomRevisionId = createBomRevision({
'billofmaterials': 132,
'name': 'BOM-TEST-REV1',
'effectivestartdate': new Date('06/19/2023')