I would recommend the above by <@U4G32RNUV> as wel...
# suitescript
d
I would recommend the above by @jcribb as well, or just doing a search.lookupFields (nlapiLookupField(type, id, fields, text) in SS1.0) on the newly created invoice id and capturing the tranid column