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 need to update the format of several workflow-generated emails. If I update my solution and redeploy, will I run into problems? Is there any good guidance on upgrading workflows?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

When you use SharePoint Designer, the original workflow gets renamed and set to "No new instances" automatically. Any in-flight workflows will continue to use the original template.

For Visual Studio workflows it is a little more complicated. The recommended approach is to do a side-by-side deployment. Create a new feature and assembly. Use a PowerShell script to create new workflow associations. Also use PowerShell to set the existing workflow to "No new instances".

Another way is to keep your old WF assembly in the GAC (the in-flight workflows will continue to use this). Then increment the assembly version before updating the feature. I have a feeling that if you try to upgrade the solution it will overwrite your assembly, so you may need to do a bit of manual deployment here, so this is probably not the best way of doing it.

share|improve this answer

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.