Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Script that runs on a sublist only the first time a line is added?
I'm creating a simple script that upon entering a "item" line item in a sales order, the scrip checks the main sales order location field and applies that location to the line item location field. The idea is, if a sales person chooses Puerto Rico at the sales order level, all the items will default to Puerto Rico at the line item level. However, I need the sales person to be able to manually change the location to another warehouse after the line item is initially entered.
Currently, I'm using the Validate Line Function, which I thought would only fire when the line item is initially created. However, it seems to run every time a line item is edited. Is there another event type that will do what I need? If not, any other suggestions would be appreciated. Thank you.