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.
Unknown SuiteScriptError "document\" is not defined
Hi All,
We try to create a payment card record in a suitelet script (ServerSide). It is referring the document object in Save.
The same script works on client-side. But receiving an error in server side.
The error message is shown below.
"type":"error.SuiteScriptError","name":"ReferenceError","message":"\"document\" is not defined.",
The code snippet is given below:-
var paymtCard = record.create({type:"paymentcard",isDynamic:false});
paymtCard.setValue("instrumenttype",1);
paymtCard.setValue("entity",obj.custpage_customer);
paymtCard.setValue("paymentmethod",cardType);
paymtCard.setValue("cardnumber",cardNumber);
paymtCard.setValue("cardbrand",creditCardBrand);
paymtCard.setValue("expirationdate",expirationDate);
paymtCard.setValue("nameoncard",cardHolderName);
paymtCard.setValue("cardtype","CREDIT");
paymtCard.setValue("memo",memo);