tl;dr: We have an Online Custom Record Form with a client script that requires the 'N/record' module and runs on saveRecord. We get a permission error when the script executes, but we don't know who to grant the proper permission to.
Details:
We have an Online Custom Record Form which we use to update the warehouse locations of our inventory. Upon submission of the form, I have a client script (via the saveRecord entry point) which is supposed to take the given item number, load its record via the N/record module, and update its warehouse location with the one given in the form.
After clicking the form's "Submit" button, a browser alert box appears which reads:
From forms.na3.netsuite.com
An unexpected error occurred in a script running on this page.
undefined (saveRecord)
JS_EXCEPTION
INSUFFICIENT_PERMISSION Permission Violation: You need the 'Lists -> Items' permission to access this page.
Please contact your account administrator.
[END OF DIALOG]
While the cause of and the solution to the error seem straightforward, the administrator and I cannot seem to identify who needs this permission. He thought there was a "web" user of sorts, but he could not find such a user in the system.
My question: who is the "user" of the Online Custom Record Forms? Can we set that user's permissions?
Thanks for your help!