Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Send email alerts to multiple users without customization when batch is ended or error

Posted on by Microsoft Employee

Issue Definition: Customer is using E-Mail alerts for finished and/or failed Batch Jobs. There are 3 users who want to use the E-Mail alerts for a Group of several independent Batch Jobs.
Now they've noticed that only one user is informed. To be more precise there is scenario where user which comes first in the Alphabet gets the mail, and the rest are not.
Users: Burst, Huber, Korda
example 1)
all user activate E-Mail alerts, only Burst receives the mail ([B]urst Comes before [H]uber in alphabet)
example 2)
user Huber and Korda are activating E-Mail alerts, only Huber receives the mail ([H]uber Comes before [K]orda)


*This post is locked for comments

  • Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    You may debug it yourself to confirm as suggested above, I cannot comment how standard works without checking.

    If I set up alerts, I remember that you could only tick the checkbox to get an e-mail alert, and the address came in from the User Options. I do not recall being able to select multiple e-mail addresses, so I would not expect that you could list more.

    As suggested, stick to using distribution lists, which is the correct solution in this case.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    thank you vilmos, i have gone through . The list of e-mails are in a map. and map always returns stored elements alphabetically. so finally in the standard when batch job error or ended , then email alert /notification is sent to single user. this is how standard works. correct me if i am wrong.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    thank you very much , vilmos

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    Most likely a select firstOnly is being called when it is expecting a single e-mail address for the alert setup table, and the index is arranged alphabetically. Or if the list of e-mails is in a Set/Map, it is arranged alphabetically and the first entry is fetched. I did not verify this, but you could easily have a look at it yourself in the source code. Try to debug SysMailer and SysINetMail classes.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    thank you very much ajith  for the reply .

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    thank you very much vilmos for quick reply, i am just curious why in my scenario emails are chosen to send to the person who comes alphabetically first . any reason for this behavior ?  

  • Verified answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    A similar request has been discussed recently about alerting, the recommendation is the same.

    Use e-mail distribution lists with dedicated service accounts for running the batches, or for alert subscriptions.

    [View:https://community.dynamics.com/ax/f/33/p/243512/673285#673285:750:50]

  • Suggested answer
    Ajit Profile Picture
    Ajit 8,755 on at
    RE: send email alerts to multiple users without customization when batch is ended or error.

    You can get AD Distrubution List created from your IT team and assigns that instead of users in your alert setup.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans