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
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