I think you need to add the tranid as a column on ...
# suitescript
j
I think you need to add the tranid as a column on the search and then instead of doing
duplicates[0].getValue('tranid')
you would just do
duplicates.getValue('tranid')
@karlenigma