Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Call one user-event script from another
I am running into a problem trying to call one user-event script from another user-event script.
I am using an after-submit UE function on a Sales Order, which gets values from the Sales Order and posts to the Customer record. Upon submission of the customer record, using the nlapiSubmitRecord function, I would like to execute a user-event script that fires on the customer record. It works fine in the GUI, but not through scripting.
var customerLoad = nlapiLoadRecord('customer',customerID);
nlapiSubmitRecord(customerLoad);
server_BeforeCustomerSubmit();
The last piece of a code is the function that lives in the UE script that fires on the Customer record, but does not appear to fire. Is the code setup wrong or can you not call another UE script?