Discussions
FYI: delimiter of tracking numbers is <BR>
I just spent an hour banging my head against this, so figured I'd share the knowledge. When you get the value of trackingnumber, if there is more than one tracking number associated with the transaction, Netsuite will return them all, delimited by <BR>. I wasn't expecting any HTML in there, so this threw me for quite a loop.
Below is a little function which breaks apart the tracking numbers and prepends the appropriate tracking URL. I would have preferred to put the tracking URL on the shipping item record, but that record doesn't allow custom fields, so I had to hard code it into the script.