I have some code that is trying to determine the r...
# suitescript
k
I have some code that is trying to determine the record type of the source transaction on an amortization schedule. I am loading the Amortization Schedule record and then getting the
trantype
but it returns
Journal
for advanced intercompany journal entries so I am not able to then load the source transaction since I can not tell which is the correct enum to use. Any ideas on how I can identify the correct enum to use to load the source transaction
b
safest is probably using search.lookupFields to get the
recordtype
k
thanks @battk that worked great.