let journal = record.create({ type: record.Type.JOURNAL_ENTRY, isDynamic: true }); journal.setValue({ fieldId: ‘subsidiary’, value: subsidiary }); journal.setValue({ fieldId: ‘currency’, value: currency }); journal.setValue({ fieldId: ‘trandate’, value: trandate }); journal.setValue({ fieldId: ‘memo’, value: ‘Auto JE for Income Tax on Vendor Bill ‘ + bill.getValue(‘tranid’) }); // DEBIT A/P journal.selectNewLine({ sublistId: ‘line’ }); journal.setCurrentSublistValue({ sublistId: ‘line’, fieldId: ‘account’,… Continue reading Creation Of Journal Entry