Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
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')