Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Do User Event scripts execute when customers view an item?
In my early tests (just using this User Event sample script from https://system.netsuite.com/help/helpcenter/en_US/Output/Help/SuiteFlex/SuiteScript/UserEvents.225.9.html?NS_VER=2010.1.0). See below for the code.
I've deployed this script attached to Service records for View events. Just to try to see something, I've set Status = released, Log Level = Debug, run as admin = Yes.
I get execution log entries when I view the item in question when logged into NetSuite. But I don't see anything when I view the service item in the web store as a regular customer. If that's the intent of User Event scripts, fine. But what I'm wondering about is what kind of script / deployment I need to use to run something after the item is fetched from the database, but before it's displayed to the customer. I'm trying to work out something similar to related items, so I need to fetch some custom records before displaying the page.