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 :
Finance | Project Operations, Human Resources, ...
Answered

Create email alert notification when batch job is executing for more than 1 hour

(0) ShareShare
ReportReport
Posted on by

I want to send email alert notification when my batch job is executing for more than 1 hour in D365FO 

I have the same question (0)
  • Ramit Paul Profile Picture
    22,797 Most Valuable Professional on at

    I Don't think this is possible in out of box.

    Why do you want yo achieve this?

  • Community Member Profile Picture
    on at

    My sales packing slip batch job is taking very long time to execute due to others batch jobs are forced to kept on hold until sales packing slip batch job is completed. My requirement is to send an email alter notification whenever batch job is executing for more than 1 hour.

  • Suggested answer
    Ramit Paul Profile Picture
    22,797 Most Valuable Professional on at

    Hi,

    I understand,

    It can be dealt by different way as well.

    Please investigate if some batch is taking long time and that affects this execution.

    We have seen "Customer aging batch" takes long time and it  affected other batches as taking long time, in your case that can be different.

    Yo may need to tune your environment such as "Staging data clean-up", database index rebuilt etc.

    If required, please take help from MS support team as they have your database access and suggest you for tuning.

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    If you need such alert, I see two options.

    1) Develop a new batch job in D365. The job would analyze all batch jobs which are in status Executing. If such job was started more than 1 hour ago, you could send out a Business Event / Alert.

    2) Create a Power Automate flow that reads BatchJobEntity in D365, and analyzes if it's been running for more than an hour. If you choose this approach, I recommend reading only the one batch job that you are interested in. For example, if your Packing slip batch starts every night at 21:00, your Power Automate flow could trigger daily 22:00 and check if the batch job is still Executing. If yes, send out an email.

  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    The suggestions from Nikolaos are great. However, you should also check why the batch would take a lot of time. On LCS environment monitoring, you can review SQL activity for e.g. long running queries.

  • Community Member Profile Picture
    on at

    Hi Nikolas,

    Thanks for the guidance. Option 2 looks great.

    Could you please help me with any blogs having information/process on power automate that reads Batch jobs in D365?

    Regards,

    Akshay

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    I think you can  look into any documentation about connecting Power Automate with D365 F&O. The fact that you need to connect to Batch job info doesn't impact the overall process.

    It's good to try to learn it on a general level, then you can apply your knowledge to any entities.

  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Akshay,

    I created some blogs about Power Automate and the Dynamics 365 Fin and Ops connector. However, it is not having a direct example with batch jobs: dynamicspedia.com/.../

  • Suggested answer
    Junaid Idrees Profile Picture
    on at

    Hi Microsoft Dyanmics D365FO,

    Just thinking loudly, If your packing slip batch job is taking long time and you are forced to hold other important batch jobs then you should investigate the root cause of this issue instead of sending an email to administrator to notify if it took 1 hour or not but still your actual problem is not solved yet.

    I suggest You should create specific batch group for packing slip batch job with dedicated batch server to speed up the posting or do the complete analysis of this activity and figure out why it is taking too long.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans