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.
nlapiLoadRecord fails for non-Administrator roles
We are experiencing a problem with the nlapiLoadRecord() function when it is invoked by the Field Changed Function in the client script of a Customer form for non Administrator roles (works fine for Administrators). The following code results in an error ReferenceError:_funcname is not defined.
var customStatusId = nlapiGetFieldValue(fieldName);
var customStatusRecord;
try {
[INDENT]customStatusRecord = nlapiLoadRecord('customrecord35', customStatusId);[/INDENT]
} catch(error) {
[INDENT]alert("ERROR LOADING: " + error);[/INDENT]
[INDENT]return false;[/INDENT]
}
customrecord35 is a custom record type we have defined. The Use Permissions checkbox is un-checked and no permissions are defined in the permissions tab.
If I check the