1

I have created a Sharepoint Workflow in Sharepoint 2010 Designer that is currently set up as follows:

If Variable:prevAssignedTo not equals Current Item:Assigned To Email Current Item:Assigned To Then Set Variable:prevAssignedTo to Current Item:Assigned To

This workflow functions, but it sends the email any time the list item is updated, even if there is no change to the Assigned To.

I also tried using a boolean variable and helper columns as outlined on another site but it never triggered an email to send at all.

1 Answer 1

1

The variable is only valid while the workflow runs. You need to create column 'prevAssignedTo' in the list itself.

Then change your Variable:prevAssignedTo to CurrentItem:prevAssignedTo

4
  • Excuse my previous comment. I have set up If CurrentItem:PrevCommentHistory not equals Current Item:Comment History Email Current Item: Created By then set prevCommentHistory to Current Item:Comment History This does not generate the email either Feb 28, 2018 at 14:37
  • I have set up another with the same process If CurrentItem:PrevCommentHistory not equals Current Item:Comment History Email Current Item: Created By then set prevCommentHistory to Current Item:Comment History This does not generate the email either. Any ideas? Feb 28, 2018 at 14:45
  • Not sure - if you follow the pattern it should work. Though I've always had problems testing multiline text fields in this manner, because they're always changing (all the hidden html). Make sure both fields are the same type of multiline - extended, rich, or plain. Usually I get too many emails instead of no emails :) so I tell my users I can't test for changed comment fields. Feb 28, 2018 at 15:28
  • This one was a user error. I forgot to set the workflow to automatically start when the item is changed. It is working too. Thanks again for your insight. Feb 28, 2018 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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