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.
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