I am creating and posting Dynamics AX Ledger Journals from C#.
I want to use the two helper classes the come with AX,
LedgerJournalEngine and LedgerJournalCheckPost, to validate the journals I create.
My questions are:
1.) How do you get a list of errors -> voucher from either of these classes or some other class?
2.) Can you simulate a post inside of a AX transaction and roll it back?
2-a.) If you roll back a posting in a transaction will AX be smart enough to reuse the voucher numbers that got rolled back?
I ended up with: