Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

SuiteScript > Permissions error on employee update

edited Jul 18, 2023 4:14PM in SuiteCloud / Customization 7 comments

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;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 (Apr-Jun 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders