hey guys, I managed to build my first scrip, and i...
# suitescript
s
hey guys, I managed to build my first scrip, and its functioning for me, I'm an administrator, the script is a Client script using the validateLine entry point. Whenever a user submits a timesheet, the script is to populate a field upon entering a new line or submitting the form. The users are receiving an error message notifying them that they do not have access to a certain list (projects). They are using the Employee Center role (it's a limited role by NetSuite Design). Do scripts require the user to have access to lists/objects referenced on the script?
s
Yes client scripts have to respect permissions, so you need to move your logic out of a client script. Or you need to have your client script ping a suitelet with elevated permissions to get the information you need to return to your client.
If the script is running serverside, you can set it to have elevated permissions on the deployment record
s
thank you @Sandii