cancel
Showing results for 
Search instead for 
Did you mean: 

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

duzgun
Explorer
0 Kudos

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,

Accepted Solutions (0)

Answers (0)