require(['N/search','N/record'])
var search = require('N/search')
var record = require('N/record')
var invoice = record.load({
type: record.Type.INVOICE,
id: 444283
})
log.debug('invoice',invoice)
Hi everyone can someone heelp me figure out how to properly load invoice records, vendor bills/credits ? i try this simple record.load with this enum type and i get errors of:
"name":"INVALID_TRANS_TYP","message":"Transaction type specified is incorrect.",