Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Scripting error resulting from permissions?
I've created a pageInit script that executes upon creation of a new sales order. The script checks the customer record to see if there is a reminder message, if there is it displays that message as an alert.
My script works fine under my admin role but when I test it out as a sales person I get this error.
I've checked the rights on my custom entity field and they are available to view by everyone. Any ideas on what to try?
Thanks!
function pageInit(type) { if (type != "edit") { customer_id = nlapiGetFieldValue('entity'); var soalertmsg = nlapiLookupField('customer',customer_id,'custentity43'); if (soalertmsg != "") { alert (soalertmsg); } } } 0