Skip to Content
avatar image
Former Member

problem faced when I try to convert JournalVoucher into JournelEntries using DI API

Hi all,

We are developing a console application which is trying to get (locate) JournalVoucher using following line of code (with GetByKey) and then convert it into a JournalEntries:

JournalVouchers b1_journal_voucher = _company.GetBusinessObject(BoObjectTypes.oJournalVouchers);

b1_journal_voucher.JournalEntries.GetByKey(1);

Application is crashing after GetByKey and JournalVoucher remains open. What is the best practice to to convert JournalVoucher into JournelEntries using DI API? Any idea about why app is shutting down?

Thanks for the input already.

Regards,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers