Tuesday, October 4, 2011

Send invoices electronically

This is just a quick tip, as it seems to me that many are unaware of how easy it is to have Microsoft Dynamics AX 2009 and 2012 automatically send electronic customer invoices through AIF.

All you have to do is to setup AIF with a valid endpoint for the customer and the document. And you must select a print destination other than “Screen”. I’ll suggest you use “Print archive” as print destination if you don’t actually need the printed document. This will just add the documents to an internal queue that you delete later.

The \Classes\CustPrintOutInvoice\sendAsXML method will then take care of business, submitting the invoice to the AIF queue.