SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

There doesn't seem to be a way to do this through SharePoint designer. Do I just need to recreate it? It's not a reusable workflow...

share|improve this question
up vote 3 down vote accepted

I am guessing you have to recreate it... SPD WFs which are not reusable are bound to the list using the "WorkflowAssociation" property in the Object Model. Maybe there is a way to read out this association and attach it to a new list. Tho it may be easier to just recreate it :)

share|improve this answer
3  
God I hate sharepoint. – Abe Miessler Feb 22 '11 at 15:36
1  
Been there Abe.. I feel your pain. /hug – Kit Menke Feb 23 '11 at 3:58

I'm not exactly sure about SharePoint 2010, but there was a way in 2007 where you could create a dummy workflow on the new list and then copy all of the XML over while replacing the List Guids: http://vspug.com/andynoon/2007/09/18/reparenting-a-workflow-to-a-different-list/.

Be warned, this process is extremely painful. You're probably better off writing a custom workflow action or the entire workflow in Visual Studio.

share|improve this answer

There was a utility somewhere that was supposedly able to do this, but I was never able to get it to actually work so I didn't bother to remember the name of it. I ended up having to recreate my SPD workflows. Pretty painful.

share|improve this answer

This is possible. Use SPD 2010. Instead of clicking on the workflow section from SPD, Click on All Files. From there you select the "workflow" and you will be able to get hold of xoml, config files. Change the ID of the List once you get that open in XML editor.

I have a post ready will post it sometime

share|improve this answer

finally i found the simple funny hack.

my site templates emails does not work after importing to new sites and here is the solution

  1. go to your site ->all files->workflows-> workflow in SharePoint designer
  2. click and open the workflow and then open your workflow XXXXXX.xoml.wfconfig.xml file
  3. change Association ListID with the id of the list in the XML (easily in list homepage).

  4. very important close SharePoint designer before publishing

  5. open site again in SharePoint designer and then see if associated list is there in workflow

  6. now you must publish the workflow (you must not see any message saying the file is changed in the server, otherwise you have not done the steps correctly)

share|improve this answer

I basically used imanabidi's answer to reproduce a list workflow on another list, but discovered that if the list has already been published and used, then the new workflow stayed associated with the task and history list of the first workflow. You can't change that, as far as I can see (maybe copying the existing lists and then using their list-id's would work...).

So I did make a clean version of my workflow, but didn't publish it. When I copied that workflow, I could assign new task and history lists to. I also changed the name of not only the xoml, but also all the other files, to match the new workflow. Worked perfectly on a simple update workflow. Next week I'll try it with a series of document workflows that work in sequence.

The upshot is that if this works, you can have "model" workflows that you keep ready, and copy and rename these as needed.

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.