Discussions
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.