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.
nlapiSubmitRecord ... "Record has been changed"
I'm writing a script that will create a case record when someone saves a customer record. Here's my problem. When I try to do this in a client user event script in a "Before Submit Function," I get an error that reads, "Record has been changed."
The NS documentation says that I might get an error when I do this, so I understand that's where I'm going wrong. However, if I create the case as an "After Submit Function," I no longer have access to some global variables that I need. In particular, I'm storing the initial values from some fields in global variables so I can test to see if the user changed the values of some fields. I compare the global variable with the new value of the fields. But I don't think I can do this comparison if I fire off an "After