SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently have my workflow start when an item is changed, however i need to turn this option off, delete some data in the list and then add new data. When the new data is added, i want start the workflow when an item is changed again.

I see Workflow context associationin the Lookup table and wondering if i can use that to turn it workflow on or off somehow. Any body have an idea?

share|improve this question
up vote 1 down vote accepted

I would reccomend, rather than the incredibly difficult task of trying to change workflow settings on the fly, that you create a new list called "Workflow Settings" with two columns: "Title" and "Value". Create a new item in that list with a title of "IsProcessing" (or similar), and a value of "No".

Modify your workflow so when it kicks off, it looks at the value of this item, and if it is "Yes", it terminates immediately.

When your workflow gets to the point where it's deleting and adding items, it sets the value of this to "Yes", performs the additions/deletions, then sets it back to "No".

This will achieve what you need without having to dive into dynamically modifying workflow definitions.

share|improve this answer
thanks for teh quick response. I'll give it a try – Jim Mar 28 '12 at 2:09
This worked great thanks – Jim Mar 28 '12 at 15:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.