How to write a code in Visual Basic for SharePoint 2016 Timer Job to send out a notification to a group when the timer job fails in Central Admin?

Anonymous
2023-06-13T18:40:12.14+00:00

I am trying to set up a notification for Timer Job deployed as farm solution. I was How to write a code in Visual Basic for SharePoint 2016 Timer Job to send out a notification to a group when the timer job fails in Central Admin? Not sure if that's possible.

Thank you

Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-06-14T06:54:02.3433333+00:00

    Hi @Islam, Anisul

    You can create a custom timer job to send e-mail alerts. You can refer to following steps to custom your timer job

    https://social.technet.microsoft.com/wiki/contents/articles/36740.sharepoint-2016-steps-to-create-custom-timer-job-using-visual-studio-2015.aspx


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.