You're probably looking for the `appliedtotransact...
# suitescript
e
You're probably looking for the
appliedtotransaction
join
🙌 1
h
Everything seem to work except getting 'refnum' from apply sublist. It gives me a searchColumn error: An nlobjSearchColumn contains an invalid column, or is not in proper syntax: refnnum. I have tried 'otherrefnum' but that gives me nothing. Do you have any idea why 'refnum' gives me an error?
e
I think
refnum
is the
tranid
column
also that error message, if copy-pasted, says
refnnum
, so you have an extra
n
in it
h
I already get the tranid from the body but also need 'refnum' to know which bill payment to confirm in a list. Ah, thanks, I removed the 'n' but still same error.
e
h
Ok, how do I get 'refnum' from the apply sublist on the vendorpayment record in a search? https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2020_1/script/record/vendorpayment.html
b
if you are not interested in things like the credits sublist, then search could be an option for you
generally the easiest way to find out which column you need is to build the search in the ui first
🙌 1
you can run the search and see what data is in each column
h
Thank you guys! I found the column I was looking for eventually via saved search: search.createColumn({ name: "transactionname", join: "appliedToTransaction", label: "Transaction Name" }),