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
SuiteScript > Permissions error on employee update
I am getting a permissions error when running this code:
"You do not have permissions to set a value for element defaultaddress due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases."
I am able to update employee data through the UI using the same account as for web services.
EmployeeSearch employeeSearch = new EmployeeSearch();
EmployeeSearchBasic employeeSearchBasic = new EmployeeSearchBasic();
SearchStringField fname = new SearchStringField();
fname.searchValue = "Aaron";
fname.@operator = SearchStringFieldOperator.contains;
fname.operatorSpecified = true;
employeeSearchBasic.firstName = fname;
employeeSearch.basic = employeeSearchBasic;