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.


DawsY said...

Hi Palle,
Do we need to add any code to the sendAsXML class.
Whenever I try to send any invoice electronically info log opens up and says you cannot send the invoice with invoice no "".
I can see that invoice in the print archive though.
Any help would be highly appreciated.

Cheers mate

Vamsi Praneeth said...


How does this feature in D365 Finance and Operations?