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.
Subrecord SuiteScript 2.0
In SuiteScript 1.0 we know there is nlobjRecord.createCurrentLineItemSubrecord('sublis tid','fieldid') which gives you access to the subrecord. It also doesn't require you to select a newLine. You set the fields with setFieldValue and at the end you use .commit(); to save the subrecord.
In SuiteScript 2.0 createCurrentLineItemSubrecord() doesn't exists. I am able to get the subrecord object by getCurrentSublistSubrecord(). However I am not able to selectLine or selectNewLine without getting a INVALID_SUBLIST_OPERATION. So I opted to not select a line and after setting all the fields there is NO .commit().
Has anyone attempted to create a customer record and add a address before saving the record? If you have you been able to set the address field (addr1, city, state, zip, country)?