Workflow Process Limit to Only One Time Run in SharePoint Server Design and Customization  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
JanetFan95758 4/19/2007 6:24 AM PST
  Question
  I want to create a workflow that updates a second list when a change is made
to the first list. But I want the workflow to be run ONLY once per list
item. I don't want the team to be forced to do the run themselves - and even
in that case they may forget they have done it and do it again.

Is it possible to limit the number of times a workflow is run?

I'm using Sharepoint Designer 2007 for MOSS 2007.
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
micburke 4/19/2007 8:10 AM PST
  Answer
  Hi,

Not sure how you have the workflow configured, but you can have it
configured in SPD to only run when the item is added new to the list. That
should work. If you need to have it run on updates as well, then you should
probably add somekind of status column to the list to keep track of whether
or not the workflow has run, then you can put a condition in your workflow to
check the status and skip the appropriate steps in the workflow.

Hope that helps.


"JanetFan95758" wrote:

> I want to create a workflow that updates a second list when a change is made
> to the first list. But I want the workflow to be run ONLY once per list
> item. I don't want the team to be forced to do the run themselves - and even
> in that case they may forget they have done it and do it again.
>
> Is it possible to limit the number of times a workflow is run?
>
> I'm using Sharepoint Designer 2007 for MOSS 2007.
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Chantel 7/11/2008 12:31 PM PST
   
  We've had similar issues with worflows and infinite loops. When you have a
workflow that sets a field value on chage, it keeps going and going and
going. We had to setup our workflows a little differently.

But a possible simple solution to your problem, may be to use a yes/no
field. For example on many of our wfs we want the assigned date for
completed date fields automatically populated but these fields will update
every time the wfs runs if you don't stop the loop. Therefore, I create two
fields called: System Set Assigned Date and System Set Completed Date
(default these values to NO). Then in my wf will look something like this:

Condition - if status equals Active, and Set Assigned Date equals NO.

Action - then set assigned date to today, then set System Set Assigned Date
to YES.

Doing so will cause this action only to ocurr one time.

The next time this wf runs, this action will not happen because it will no
longer meet the first condition, as the Set Assigned Date will now equal YES.

Hope this helps a little.


"JanetFan95758" wrote:

> I want to create a workflow that updates a second list when a change is made
> to the first list. But I want the workflow to be run ONLY once per list
> item. I don't want the team to be forced to do the run themselves - and even
> in that case they may forget they have done it and do it again.
>
> Is it possible to limit the number of times a workflow is run?
>
> I'm using Sharepoint Designer 2007 for MOSS 2007.
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies