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.
Fields not sourcing in beforeSubmit scripts
Either I am completely out to lunch or there has been a strange change to the behavior of server-side user event scripts. A wide variety of fields are not sourcing when related fields are set. Here are three cases:
Case 1: Setting a discount item on a transaction before submit.
This should cause the corresponding discount rate to populate and the discount amount to calculate. Instead, just the discount item field is set.
Case 2: Setting a subtotal or discount line item
invoice.setLineItemValue("item","item",invoice.getLineItemCount("item")+1,-2)
When the invoice is loaded, the subtotal is there but has not calculated the subtotal, it calculates if you manually edit a line on the invoice that is returned.