Nick Grattan's Blog

About Microsoft SharePoint, .NET, Natural Language Processing and Machine Learning

Changing the Task list for SharePoint Designer Workflows

with 15 comments

By default, SharePoint designer will automatically select an existing Task list or create a new one if a suitable Task list does not exist. To change the Task list being used:

  1. Create a new Task list using Site Actions + Create.
  2. Find the Id (Guid) for this new list following the technique described in my blog entry here.
  3. Using SharePoint Designer, open the site where the workflow exists, expand out the “Workflows” folder and the workflow whose Task list is to be changed.
  4. Locate the file called workflowname.xoml.wfconfig.xml and open this file for editing.
  5. Take the Id found in (2) above and replace the Id in the “<Association>” element’s “TaskListID” attribute.
  6. Save the file.

 

Written by Nick Grattan

April 29, 2008 at 11:32 am

15 Responses

Subscribe to comments with RSS.

  1. […] « Filtering views by Time and Date Changing the Task list for SharePoint Designer Workflows […]

  2. Hi

    I did it but my workflow task still is opened in the previous task list and when i am trying to complile the workflow again it gives me an error.

    Could you help me?

    Hamid

    April 30, 2008 at 6:00 am

  3. Check the Id (GUID) you’ve specified for the task list. Also, check that you’re using a Task list and not another type of list. Nick.

    nickgrattan

    April 30, 2008 at 7:45 am

  4. […] Changing the Task list for SharePoint Designer Workflows […]

  5. Hello and thank you for your post.
    Quick question: Could it be possible from one workflow to collect data from different users and show up on different task lists; for example one named “Review Task List” and another named “Approval Task List”.
    can i add another tag to the WokrflowConfig tag with a second task id list?

    thank you for your help

    Ignazio

    ignazio

    June 26, 2008 at 7:42 pm

  6. Hey,

    unfortunately it doesn’t work for me either. I’m sure the Id(GUID) is OK, as I copied it from Audience targeting settings – as suggested by Ken Pespisa in the other entry of your blog, and I’m sure it is a Task list.
    Any ideas what might go wrong?
    Marek

    Marek

    August 12, 2008 at 7:48 am

  7. i also couldn’t get it to work, but i was able to follow this: http://thingsthatshouldbeeasy.blogspot.com/2007/10/sharepoint-designer-2007-workflow-on.html. basically, Eugene Rosenfeld is pointing out that SPD picks the “first” task list. what’s the “first” task list? the one whose title starts with the letter earliest in the alphabet. in my case, i had “Tasks” and “Workflow Tasks”, so i just renamed the “Workflow Tasks” list to “AutoTasks.” of course i didn’t want to have to re-create the workflow, so i just deleted the wfconfig.xml file and the form (although i’m not sure if you really need to delete the form) and it worked. the only thing i had to do was go back and re-select the list i wanted the WF associated with and i also had to set-up the initiation variables again. good luck!
    ~ryan shell

    ryan shell

    September 22, 2008 at 6:38 pm

  8. To get the TaskListId click Settings > List Settings, then it will be in the address bar after “…?List=”. You might have to url-decode the value.

    Changing the TaskListId alone will not work because the content-type will not exist in the new list. Change the TaskListID in the .wfconfig.xml file in Sharepoint Designer, then re-create your Collect Data action. Re-creating the Collect Data action creates the missing content-type for the Collect Data action.

    Goodmedalist

    March 11, 2009 at 2:07 pm

  9. Can I attached my custom list with “Collect data from user” actions? actually my goal would be to enter/edit data into custom list other than “Task” list …

    Thanks,
    Sanket

    Sanket Shah

    April 7, 2009 at 9:24 pm

  10. Worked a charm, cheers this was going to hold me up if I couldn’t figure out away of reconfiguring which task list this gets set too.

    Paul

    September 11, 2009 at 10:51 am

  11. Great info. Problems arise if you have already written the workflow and created the task. You just have to recreate that step and save the workflow.

    Many thanks

    Derek

    December 1, 2009 at 6:19 pm

  12. Any idea how to change its History list?

    phil

    December 3, 2010 at 9:32 pm

  13. […] example, when setting the Task list to be used with SharePoint Designer Workflows (see my blog post here). Here’s a simple way of doing […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: