D365 Finance & Operations and Dynamics AX Forum

Expand all | Collapse all

ax 2012 R3 job info log via email

  • 1.  ax 2012 R3 job info log via email

    SILVER CONTRIBUTOR
    Posted Apr 23, 2019 03:26 PM

    Hi developers,

    i need to send an email to a group of users, AFTER the job is executed, where i need to list lines from log in the email body.

    So here are two potential problems, where i can use some suggestions:

    1 - i can't add a task to run after the main task of the job, because the BatchHistory table (thats where the info lines live) is committed after the job has finished.

    2- there is an alert option, which would sent email to the user that the job is done, but then i would need to customize the body of the email message that was set up as a template for an alert - which i still cant figure out how...

    any ideas will be appreciated, thanks



    ------------------------------
    Pedja Nikodijevic
    Express Scripts Canada
    Mississauga
    ------------------------------


  • 2.  RE: ax 2012 R3 job info log via email

    MICROSOFT MVP
    Posted May 01, 2019 12:17 AM
    Hi Pedja,

    Can you tell why you think you need to customize the body of the email message? Are you missing some placeholders?

    ------------------------------
    kind regards,

    André Arnaud de Calavon
    Solution Architect, Microsoft MVP - Microsoft Dynamics Business Solutions
    ------------------------------



  • 3.  RE: ax 2012 R3 job info log via email

    TOP CONTRIBUTOR
    Posted May 10, 2019 02:20 PM
    I would find this useful as well.

    We have a batch process that runs nightly, and the infolog from that process needs reviewed periodically.  Instead of having a sysadmin review it, it would be much better if the infolog results were sent directly to a front-line worker.

    (Note: This batch job always ends in an error state, but not every error in the log requires follow-up.)

    ------------------------------
    Daniel Zook
    Director of IT
    Lehman's
    Dalton OH
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role