locked
workflow goes into infinite loop RRS feed

  • Question

  • I have a workflow that checks a custom appt field -- when the appt is closed if it finds another appt in the opp with that selected picklist it reopens the appt and changes the value and closes it again -- that all works no problem

    my question is this

    in my workflow if i set "options for automatic workflows" to record status changed it will go into an infinte loop (Im guessing because it is reopening the appt and triggering itself again).  if i check "record is created" it runs once like I need it to.  If i check nothing it does nothing.  Used to work fine in crm 3 with record status changed  checked

    why is this the case?
     
    Thursday, August 13, 2009 6:59 PM

Answers

  • Definately getting into a inf loop since you open/close the record, which then triggers the wf.  Might consider putting a flag on the record to indicate that it's a WF generated action and then include a check at the top of the WF to look at that value.


    Matt, MVP - Dynamics CRM
    Friday, August 14, 2009 7:49 PM
    Moderator