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.
Creating Assembly build transaction using script
Hi,
I am trying to create an assembly build transaction using script by transforming an workflow in to assembly build but it gave error that - please
configure inventory detail at line 1.
Please provide a sample code for creating assembly build using script and how I can iterate over component sublist and configure inventory detail.
I am using following code -
function createAssemblyBuildAfterSubmit(type){
try{
if(type == 'create' || type == 'edit'){
var iqProductionRec = nlapiGetNewRecord();
nlapiLogExecution( 'DEBUG', 'ID: ', iqProductionRec.getId());
var fromRecord = 'workorder';
var fromId = iqProductionRec.getFieldValue('custrecordiqf1_workorderref'); // 1142 Id of the workorder quantity = 19000
var toRecord = 'assemblybuild';
var defaultV = new Array();