web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Send Invoices to Email - Retail Statement Posting

(0) ShareShare
ReportReport
Posted on by

I have followed the instructions in the following blog entry and can manually post sales orders and email is sent correctly when sales invoice is posted: https://blogs.msdn.microsoft.com/axsupport/2013/02/05/emailing-customer-invoices-from-a-batch/

I want the emails to be automatically generated when retail statement posting is run in a batch. The batch creates the sales orders and posts invoices.

Would it be enough to change the code in class RetailStatementSalesOrderCreator to set parameter usePrintManagement(true)? Or is there perhaps a better solution?

Best regards,

Harri Nevanlinna

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Hi Harri Nevanlinna,

    It looks like a solution.

    I think  possible improvement here could be to add a new field to statement table "use print management" and use it instead of hard coded "true", so you will b able to switch it off for some statements.

  • Community Member Profile Picture
    on at

    Thanks for reply and good point to make this setup dynamic. I am trying to activate this as specified above for the statement posting and I am getting the following error:

    Method 'logon' in COM object of class '_NameSpace' returned error code 0x80070057 (E_INVALIDARG) which means: One or more arguments are invalid.

    When running the standard sales order invoice posting with "Use print management" the email is sent.

  • Mea_ Profile Picture
    60,284 on at

    Did you try to debug ?

  • Community Member Profile Picture
    on at

    I guess I need to do that...will have a look

  • Community Member Profile Picture
    on at

    Hi Harri - I having the same issue where the retail statements are posted and sales invoices are being created but they are not being emailed to the customer using print management. Please let me know if you have resolved the issue? Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans