Want to compare 2 Items Sublist, `oldRecord` and `...
# suitescript
a
Want to compare 2 Items Sublist,
oldRecord
and
newRecord
to know when a line was added or deleted... Reading
lineuniquekey
of each record to an Arrays would be the way to go but I have a couple of problems. Comparing if one array is bigger than the other could potentially tell you if something was added or removed, however if a line was remove and another line added the arrays length would be the same... In the other hand comparing arrays in the way I know would give you the differences between arrays but it would not tell you from which arrays is the difference coming from... What is the normal approach you guys use for this case?