This is an example of emailing the Sales Invoices with Print Management Settings and using a Batch Server. One of the prerequisites to email from a batch is to have
an SMTP Server setup and running. This blog goes into the setup within AX, but does not cover the setup of the SMTP Server.

The one suggestion I have for you is that when you setup your print management is that you do include the option to “Save in print archive”. This will help you if the
batch processing fails as it will allow you to go back and manually process the emails that did not get processed when the batch failed. When processing the failed transactions it will use the print management setting you have for that customer.

 Configure email parameters in Dynamics AX

  1. Navigate to System Administration – Setup – System – E-mail parameters
  2. On the E-mail parameters window add the SMTP server name or IP address to the Outgoing mail server field
  3. In the SMTP port number field add the port the SMTP server is using
  4. Additional setup may need to be done in the E-mail parameters window depending on the setup of the individual environment
  5. Click on the Close button

 Configure a Batch Group for the email batches

  1. Navigate to System Administration – Setup – Batch group
  2. On the Batch group window click on the New button
  3. In the Group field type in a name of the new batch group for emailing documents    
  4. In the Description type in a description of the new batch group for emailing documents
  5. While the new batch group is highlighted click on the Batch Servers tab
  6. In the Remaining servers section find the AOS that will be used to process the batch group documents for email, click on it, and then click on the “<” button to add it to the selected servers
  7. Click on the Close button

 Configure Print Management to email Invoices

  1. Navigate to Accounts Receivable – Setup – Forms – Form Setup
  2. On the Form setup page click on the Print management button
  3. Click on the “+” sign Expand Customer invoice
  4. Select Original <Default>
  5. Click the arrow on the Destination field and select Printer setup
  6. Click the Save in print archive checkbox
  7. Click E-mail, and in the To: field enter the email address
  8. In the Subject field enter a subject
  9. Select file format of the attachment
    1. Click on File and set the file location and file format
    2. Click the Save in print archive checkbox
    3. Click the OK button
    4. On the Print management setup window click the close button
    5. On the Form setup window click the close button

 

  Configure Customer setup for email

  1. Navigate to Accounts Receivable – Common – Customers – All Customers
  2. Select Customer and click on the Edit button
  3. Click on the General tab
  4. Click Print management
  5. Click on the “+” sign Expand Customer invoice
  6. Right click on Original and choose override
  7. Click the arrow on the Destination field and
    select Printer setup
  8. Click the Save in print archive checkbox
  9. Click E-mail, and in the To: field enter the email address
  10. In the Subject field enter a subject
  11. Select file format of the attachment
    1. Click on File and set the file location and file format
    2. Click on the Close button

 Create batch to email Customer invoices

  1. Navigate to Accounts Receivable – Common – Sales orders – All sales orders
  2. On the Sales order tab, in the New section click on Sales order
  3. On the Create Sales Order window select the customer from the Customer account drop down menu and then click on the OK
    button
  4. On the Sales Order window enter an Item number in the Item number field and tab off of the Item number field
  5. Click on the Invoice tab and in the Generate area click on Invoice (Click the F5 button refresh the screen if the Invoice
    button is grayed out )
  6. Select the Quantity drop down menu and select All
  7. Mark the Print invoice and User print management destination checkboxes
  8. Click on the Batch button in the lower right corner of the Point invoice window
  9. On the Batch processing window mark the Batch processing checkbox
  10. In the match group drop down menu select the Batch group for emailing batch documents
  11. Click on the Recurrence button and configure when the batch should run and click on the OK button
  12. Click the OK button on the Batch Processing Window
  13. Click the OK button on the Posting Invoice Window
  14. When the Posting Invoice closing Window closes a message that says: Some print management report destination are not valid for
    batch processing. Do you want to continue?  Click on the Yes button.
  15. An Infolog window should appear with the message: The Order invoice job is added to the batch queue.  Click on the Close button.
  16. When the batch runs, the email should send.