CRM Workflows to trigger again when it is failed RRS feed

  • Question

  • Hi,

    I have a process in CRM 2013, whenever it is failed i want to trigger it again and again until its successful. If its success then it has to stop.

    Is it achievable?

    Any help on this is appreciated.


    Kruthi Hegde

    Monday, March 23, 2015 9:48 AM

All replies

  • No, not as such.  Much better to redesign the process to the workflow never fails in the first place, and instead waits to run on whatever would make it run successfully.  Otherwise you will run into a whole host of issues with the workflow engine in CRM, which does not like large volumes of failed workflows.

    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

    Monday, March 23, 2015 2:25 PM
  • This depends on how the workflow fails. If it's an error condition, then I don't think you can directly trigger it again, though you might be able to write a scheduled process that looks for failed asyncoperation records, then either resumes them, or starts a new workflow instance

    If the failure is something you can catch in the workflow (e.g. via a Check condition), then you could trigger a data change that could cause a new workflow instance to run. However, I think you'd then run into the Crm logic that checks for infinitely recurring workflow instances, and stops them after a certain depth (I think this is 8)

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, March 23, 2015 2:33 PM