cancel
Showing results for 
Search instead for 
Did you mean: 

Get the Posted ID from AccountingEntry posted via custom BO

planteksz
Explorer
0 Kudos

Hi,

I have created custom BO to post a Journal Entry Voucher. After posting, I would like to save the posted Journal Entry Voucher's ID to this custom BO I have. I'm not able to figure out how to do that.

I have an Event-BeforeSave for the custom BO but before posting anything the ID field is empty obviously. However, from the debugger I can see that once it's posted and the BeforeSave event ran till the end, it will run it again and in this case I can see the ID for the Journal Entry Voucher but I'm not able to save it. I've been digging these forums but I haven't found an answer for this. Is it possible to save the ID somehow to my custom business object?

Thank you!

Accepted Solutions (0)

Answers (0)