Skip to Content
0

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

Dec 28, 2017 at 02:12 PM

22

avatar image
Former Member

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,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers