Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to setup a workflow for a datasheet list that would send an email when a field in an item is changed to particular value and only once – not when you change any of the other fields. This would be like a status so when the field is changed to another value – nothing will happen and if the field is changed to that particular value again the workflow runs again. Is this possible?

share|improve this question
add comment

3 Answers 3

Create an additional column in your list which can be excluded from the datasheet view. Make it a choice column called Email Flag with the default value being no.

In SharePoint Designer you create a new workflow that fires on item change. You create a condtion If Field equals XXX and Email Flag equals No and create an Action to email a user and Update an item. The update item sets the Email Flag to Yes and prevents the workflow from refiring.

Publish the workflow and emails will be sent to the specified user when the condition is met.

Workflow sample

share|improve this answer
    
Revised my answer. –  PirateEric Oct 13 '11 at 20:04
    
What if you want to change that field again to a different status and then to that status on which you want to run the workflow? ie the column will say yes but you still want to run the workflow as the status has been changed to that value again. –  Tomas Stehlik Oct 13 '11 at 20:27
    
Then you'd need to have some additional logic in the workflow that resets the flags so the email could be sent again or use the Else If branch to specify other conditions if the email should fire. –  PirateEric Oct 13 '11 at 20:35
    
That is exactly what I need, could you pleaes tell me how to use the else if branch to get this? Im new with sharepoint. –  Tomas Stehlik Oct 13 '11 at 20:53
    
I'd need some specifics in order to fully answer your question. What are the fields and under what circumstances should the emails be sent. –  PirateEric Oct 14 '11 at 1:03
add comment

You can use the action Wait for, which waits for the particular field to change its value.

share|improve this answer
add comment

Your Answer

 
discard

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.