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.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Trigger Script when Approving an Order (Pending Approval -> Pending Fulfillment)
Hoping that someone can help me out here with something that may be very simple. Basically I'm looking to populate a field on a Sales Order when the "Approve" button is clicked. The field will populate with today's date, so that I can search when the order was last approved. In the scenario below, the current status is Pending Approval (SalesOrd:A)
Trigger: Status=Pending Approval -> Pending Fulfillment
var today = new Date();
nlapiSetFieldValue('custbody_last_approval_date',today)
Save record
I would imagine this would have to be a User Event script, since some of these triggers may come from the "Approve Orders" screen, while others come from the "Approve" button within the sales order. I would also think that this would have to be a "Before Submit" function. I just have no idea where to place any of this code and how to look specifically for the trigger stated above.