MS Dynamics CRM Usability

Our primary focus is on Microsoft Dynamics CRM usability & training issues, but other issues will appear from time to time.

We’d love to hear from you. Please take a moment to sign up, and let us know what you have to say.

View all Biz IT Blog articles...

Using a recursive CRM 4.0 child workflow to simulate a ‘DO Loop’

May 01, 2008

One problem I’ve run across is that Microsoft CRM 4.0 workflows do not allow you to loop. So if you have any kind of recurring process, you have to be creative to make it work. A common issue that I have to deal with in sales processes, is the situation where a workflow is designed to validate the data in an entity repeatedly until the user gets it right.  In this particular example, we want to make sure that an opportunity cannot graduate to the next step in the sales process until all the required data has been entered and assigned tasks completed.

redo

The first step of this child workflow is a complicated test to verify that all the data has been properly filled in and that several tasks have been completed. If the test is true, workflow then:

 

* updates a status flag in the opportunity to tell a parent workflow it can continue,

* sends a congratulatory e-mail to the sales rep and his manager for moving another opportunity to the next phase,

* then the child workflow ends.

If the test fails,the otherwise branch performs the following:

 

* create a new task telling the sales rep about the missing or invalid information,   
* wait for completion of that task,   
* check a couple of other things,   
* and ultimately the workflow calls itself to start the process all over again.

In the meantime, the parent (calling) workflow is waiting for the status flag mentioned above to be set to Yes, before it will continue.

HTH

 

Steve Noe

Posted by Steve Noe on 05/01 at 08:24 PM
(0) CommentsPermalink

You must be a registered member to submit comments. |

Notify me of follow-up comments?

Back to Biz IT Blog...