6

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...

8 Answers 8

6

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 :)

2
  • 11
    God I hate sharepoint. Commented Feb 22, 2011 at 15:36
  • 2
    Been there Abe.. I feel your pain. /hug
    – Kit Menke
    Commented Feb 23, 2011 at 3:58
5

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)

1
  • This is not possible for 2013 Workflows
    – Emaborsa
    Commented Mar 19, 2020 at 9:21
1

If you have a list workflow, the best i can suggest is go through this blog : http://ikarstein.wordpress.com/2011/02/10/walkthrough-how-to-move-or-copy-a-sharepoint-designer-2010-list-workflow-to-another-list-on-the-same-site-or-another-site/

1

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

1

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.

1

I had the exact same problem but found a very easy solution. Open SharePoint designer - select your entire workflow (Select all) > Copy > And paste the content inside a new workflow(create an empty workflow before hand). Boom !!!! Done enter image description here Worked like a charm - I am not facing any issues. My workflow was very complex and long so reconstruction would have been a nightmare.

Hopefully this helped someone out there !

1
  • 1
    Yes, it works like a charm, tested witn a 2013 Workflow.
    – Emaborsa
    Commented Mar 19, 2020 at 9:26
0

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.

0

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.

Your Answer

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

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