Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Workflow Email Notification

(2) ShareShare
ReportReport
Posted on by 68
Hi All,
 
I am working in a Business Central OnPrem environment and have setup SMTP email. Everything works as expected and test mails can be sent. 

This was done to receive workflow request and approval notifications through email. The problem is I am not getting any emails. I researched and started troubleshooting and found what is wrong, but I do not see a straight forward way to fix this. 
 
When submitting a request for approval an approval entry does get created, but no emails are sent. I then went to the Job Queue Entries and I can see the Job created to sent the email. 
 
 
I have noticed that the job queue entry gets created, but not executed. Any ideas why this might happen? 

I suspect this is some simple oversight, but I just cannot figure it out.
 
Thanks,
 
Zafar
  • gdrenteria Profile Picture
    gdrenteria 13,350 Most Valuable Professional on at
    Workflow Email Notification

    Hi, good day
    I hope this can help you, and give you some hints.

    Stabilize your Job Queue – a few tricks

    Likewise, if you find something strange with the queues without an adequate response, I could create a ticket, it has happened to me that it has been a bug or internal problem.

    Technical support overview - Business Central | Microsoft Learn

    Best Regards
    Gerardo

  • Zafar LIT Profile Picture
    Zafar LIT 68 on at
    Workflow Email Notification
    Hi All,
     
    Thank you for the replies. I will share as much as I can about the setup. 
    Version being used: W1 19.5 (Platform 19.0.36528.36625 + Application 19.5.36567.36700)
     
    Here is the workflow. This is the basic purchase quote approval workflow:
     
     
    Approval User Setup
     
    Again I would like to emphasize that it works, I can actually receive emails with the approval notification, But I always have to manually run (on the foreground) the auto created Job, to receive the emails. The Job does not automatically run. 
     
    Here is the most recent Job Queue
     
    As suggested by @KasparsSemjonovs I also deleted all job queue entries and then ran a workflow again. I still get the newly created Jobs in the Job Queue just as expected, but nothing is run from there unless manually done by me. 
     
    THank you for all the help up untill now. I realize this is difficult to troubleshoot, but if any other information is needed please let me know. 
  • Suggested answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 4,032 Super User 2024 Season 2 on at
    Workflow Email Notification
    I cannot think of any reason why you have several job queues for the same objects.
    I would suggest deleting all the Job Queue Entries for the Codeunit 1509 and leave only 1. If You see them being populated more and get stuck anyway, then just delete all, and check if the next job queue that is created for this Codeunit gets executed corectly.
    Also the usage of Job categories could impact this. If there is a job queue in other category, that is always running (non-stop or recurring each minute) or overlaps with this Job category, then this category might not even execute. So if You cannot get any results, you can try to remove the Job Queue category.
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 7,144 on at
    Workflow Email Notification
    Yah need more details to understand exact issue. 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,516 Super User 2024 Season 2 on at
    Workflow Email Notification
    It looks like a problem with the Job Queue, but it's really hard to tell. Can you provide a screenshot of the Job Queue?
    In addition, some partners may also consider making some simple customizations to solve the Job Queue problem.
    For example,
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 25,565 Super User 2024 Season 2 on at
    Workflow Email Notification
    This is one of those issues where it’s difficult to troubleshoot without more context or access to your system, as we’re just guessing at possible reasons. It would be helpful if you could share screenshots of your entire setup.
     
  • Zafar LIT Profile Picture
    Zafar LIT 68 on at
    Workflow Email Notification
    Hi Yun Zhu,
     
    I have no errors. Not in sent messages or the outbox. All I am really experiencing is that the Job Queue does not actually execute after it is created. IN effect if I run it manually it does work. 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,516 Super User 2024 Season 2 on at
    Workflow Email Notification
    Hi, first please confirm whether there are emails and error messages in Sent Emails or Email Outbox.
    You may see some error messages.
    Thanks.
    ZHU

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Share Your Event with the Community

Jump start your event engagement! 📢

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,717 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans