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
Odd error when trying to copy quote sublist items
I have created a function that is triggered on the beforeLoad user event for Estimate (Quote) records. This function is intended to copy details from an existing quote record, namely the main record fields, and all items in the 'item' sublist.
Copying of main field values works fine.
The issue is if the source quote has only 1 item in the sublist, the 'item' field in the new quote ends up being something different that what was assigned.
However, if the source quote has 2 or more items in the sublist, then the copy works as intended.
I will post some photos soon to illustrate this, but in the mean time, would be great if someone has any idea. I have already tried disabling all other scripts that are triggered on the quote record.