Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

automated alert for batch jobs failure

Posted on by 28

We need an automated Alert for if any of the Auto-batch jobs failures as we have no monitoring of this in place currently..

  • Suggested answer
    Danny Bilodeau Profile Picture
    Danny Bilodeau 4,058 Super User 2024 Season 1 on at
    RE: automated alert for batch jobs failure

    Hello Vishal,

    In his response, Nuno provided a solution using Business Events in combination with Power Automate. In Power Automate you would be able to define the email adresses for each recipient.  So, when batch job fails it will trigger a business event.  In power automate, you will have to add a connector for Dynamics 355 F&O and create a flow that makes use of the business event as a trigger.

    Alternatively, you could try making use of standard alerts for a Batch job.  In teh recipient emails you list all teh email adresses separate by a comma (no space in between).  I have not tried for Batch Jobs but is should work.  You can quickly test by using Ended or Withould as the status that will trigger the notification and see what happens.

    pastedimage1676472865009v1.png

  • vishal.sai.b Profile Picture
    vishal.sai.b 28 on at
    RE: automated alert for batch jobs failure

    thanks for the Reply Danny,

    with this approach we will be able to send the notification only to the user that setup the batch job

    what if we have to send notification to multiple user, how can we achieve this can please provide some suggestion  

  • Suggested answer
    nunomaia Profile Picture
    nunomaia 10,684 Super User 2024 Season 1 on at
    RE: automated alert for batch jobs failure

    Just another alternative, when you need to control destination e-mail

    Go to Business events in Batch job

    pastedimage1676404341417v1.png

    enable error business event

    pastedimage1676404379636v2.png

    Go to Power Automate and trigger and e-mail for each failed job  

  • Suggested answer
    Danny Bilodeau Profile Picture
    Danny Bilodeau 4,058 Super User 2024 Season 1 on at
    RE: automated alert for batch jobs failure

    When you create teh batch job, there is always a menu wher you can configure the alerts.  The user that sets-up the batch will be the user that is notified.

    pastedimage1676401069482v1.png

    pastedimage1676401083175v2.png 

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans