Sunday, December 27, 2020

Setting up alert on specific batch job in case of Error or canceled in Dynamics 365 finance and operations

Alerts are very important events for business and can be created to notify user based on the change. As everyone aware we can setup alert when create , update or delete actions performed on a record or specific field. but we can setup a alert for specific batch job in the system when it Ended , Failed or Cancelled. 

This can be done at the time of setting of the batch job.

Scenario:- 

We have a customer scenario where business user has to be notified when ever "Batch job history clean-up" job end with error or cancelled. 

Steps to configure:- 

1. Go to System Administrator > Periodic tasks >  Batch job history clean-up


























2. If you expand the run in the background section then we can see two options, Recurrence and Alerts. 







































3. Then click on Alerts and setup the events you want alerts to be triggered and click on ok 
4. In this case user fill get notified in the action center when ever the batch job "Batch job history clean-up" ended with error or canceled.
The same alert can be send as email but for that smtp server should be configured in email parameters.



Please note if you want to get alert then "Change based alerts" batch job should be running every min. 

Hope you find this useful and will come up with another interesting blog






No comments:

Post a Comment