web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Make a workflow that fails?

(0) ShareShare
ReportReport
Posted on by 2,601

I'm writing a routine to detect and alert on failed workflows.

Is there a simple way of making a new workflow and causing it to fail?

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    TheMarkChristie Profile Picture
    10,328 Moderator on at

    Hi

    I have done this before for a CRM Admin user and there are 2 things to do

    1) Write a Custom Action to send an email when the process session = "Required Status"

    we ended up just creating an admin dashboard that had several views with todays failures, pending, not complete etc

  • CU21020959-0 Profile Picture
    2,601 on at

    Thanks for the info, but the client specifically want to use SCOM so that's what I'm working with ;)

  • Suggested answer
    TheMarkChristie Profile Picture
    10,328 Moderator on at

    ok,

    Much easier then

    Have you looked into this

    blogs.technet.microsoft.com/.../system-center-management-pack-for-dynamics-crm-2016-is-now-available

  • CU21020959-0 Profile Picture
    2,601 on at

    Yes, I've seen it and am looking into what it monitors.  From what I can see it doesn't pick up failed workflows - which is why I'm trying to work out how to make a workflow that fails ;)

  • Verified answer
    Tim Dutcher Profile Picture
    2,100 on at

    I think you can get a workflow to fail by attempting to set a value for a field that's invalid. For example, update a field that has a max length of 100 to 101+ characters or set a numeric value outside the bounds of what's allowed.

  • CU21020959-0 Profile Picture
    2,601 on at

    Thanks for that Tim - just what I needed

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans