Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
How to resolve the User Event Script error in line 144
Hello,
The following is a User Event Script used to Create An Inventory Item upon button push from a Custom Record Form
/**
*@NApiVersion 2.x
*@NScriptType ClientScript
*/
define(["N/ui/dialog", "N/ui/message", "N/search", "N/record", "N/currentRecord"], runScript);
function runScript(dialog, message, search, record, currentRecord){
// /**
// * @param {ClientScriptContext.saveRecord} context
// */
return{
saveRecord: function (context){
var title = 'saveRecord() :: ';
try {
var currentRecord = context.currentRecord;
var ReqRec = currentRecord.id;
log.debug({
title: "Rec Id",
details: ReqRec
});
console.log(ReqRec);
var TrfLinesRec = {};
var subsidiary = currentRecord.getValue("custrecord_itbs_cps_subsidary__");
var reqtranid = currentRecord.getValue("custrecord122");
if (reqtranid) {
var transRec = record.load({
type: "customrecord_cps_contrat_de_vente_a_reme",// contrat de vente id