Notifications
Announcements
No record found.
Hi
I am wondering if there is away I can get notify when the workflow or system job failed.
Thanks,
Dee
*This post is locked for comments
Hi,
as far as I know, you can't register a workflow/plugin for the System Job entity, so you may have to use a dashboard instead. Sure you can always create some sort of external app to keep pulling failed system jobs data from Dynamics every few minutes, and that application might take care of the notifications, but it's a different story.
Build a personal view of failed Workflow system jobs. Filter for current user jobs if necessary. Add this to a personal dashboard so you can see anything that appears there, and follow up accordingly.
For Custom Workflow use try and catch block. In Catch Block send email to crm admin that workflow has failed.
try {
}
catch (Exception ex) { // Write you send email logic here// // throw new Exception(ex.Message + Environment.NewLine + ex.StackTrace); }
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2