Discussions
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. Join us
The dreaded Transaction Status Field - how to get into BeforeSubmit context?
Hello everyone,
I have a catch-22 situation here and I'm looking for any ideas or approaches that I may be missing.
Scenario:
When a Sales Order is reverted from Pending Fulfillment to Pending Approval as a result of a user editing the sales order who lacks the Approve Sales Order permission - in other words when they edit the order it reverts it back to Pending Approval. In this scenario the NetSuite application "changes" the Status field value and you can only pick up this change in an AfterSubmit context, even worse you need to hit the DB for a fresh read of the field to catch the change (i.e. nlapiGetFieldValue() will return the original, unchanged value)
Steve Klett | Senior Developer
NetValue Technology