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.
Insert or Commit Line Item
Hi !
Two issues when trying to create a new opportunity with the default sales rep as the person entering this opportunity:
1. Unable to get my script to commit or insert a line item.
2. Contribution (integer) defaults to 100 though the script tries to insert 5.
//Use this script on "Page Init Function" on an Opportunity Form
function oppDefaultSalesRep(type)
{
if ( type == 'create')
var salesrep1 = nlapiGetUser();
nlapiSetCurrentLineItemValue('salesteam', 'employee', salesrep2);
nlapiSetCurrentLineItemValue('salesteam', 'salesrole', -2);
nlapiSetCurrentLineItemValue('salesteam', 'isprimary', 'T');
nlapiSetCurrentLineItemValue('salesteam', 'contribution', 5);
nlapiCommitLineItem('salesteam');
//nlapiInsertLineItem('salesteam');
}
Thanks.
Kumar