none
set the TaskListContentTypeId in workflow.xml RRS feed

  • Question

  • workflow.xml :

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
     <Workflow
       Name="My Workflow"
       Description="This workflow ..."
       Id="GUID"
       CodeBesideClass="ProjectName.Workflow1"
       CodeBesideAssembly="ProjectName, Version=3.0.0.0, Culture=neutral, PublicKeyToken=publicKeyToken"
       TaskListContentTypeId="0x000"
        AssociationUrl="_layouts/MyAssocForm.aspx"
       InstantiationUrl="_layouts/MyInitForm.aspx"
       ModificationUrl="_layouts/MyModForm.aspx">

      <Categories/>
      <MetaData>

       <Modification_GUID_Name>Name of Modification</Modification_GUID_Name>

       <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
      </MetaData>
     </Workflow>
    </Elements>

     

    Q:How to set the TaskListContentTypeId?

    Thank you for help.

    Monday, October 29, 2007 3:32 AM

Answers

All replies

  • <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
     <Workflow
       Name="My Workflow"
       Description="This workflow ..."
       Id="GUID"
       CodeBesideClass="ProjectName.Workflow1"
       CodeBesideAssembly="ProjectName, Version=3.0.0.0, Culture=neutral, PublicKeyToken=publicKeyToken"
       TaskListContentTypeId="0x010801"
        AssociationUrl="_layouts/MyAssocForm.aspx"
       InstantiationUrl="_layouts/MyInitForm.aspx"
       ModificationUrl="_layouts/MyModForm.aspx">

      <Categories/>
      <MetaData>

       <Modification_GUID_Name>Name of Modification</Modification_GUID_Name>

       <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
      </MetaData>
     </Workflow>
    </Elements>

     

     

     

    Wednesday, February 6, 2008 2:38 PM
  • good way to insert workflow.xml and feature.xml is to add in snippets in while coding in visual studio. This will give you the TaskListContentTypeId as well. Snippet file is located in:

    C:\Program Files\Microsoft Visual Studio 8\Xml\1033\Snippets\SharePoint Server Workflow

     

    To add the snippet in Visual Studio, Press Ctrl + K + B when coding on visual studio

     

    Friday, February 8, 2008 6:12 AM
  •  

    TaskListContentTypeId needs to be set to the value for your task type. If you do not use a custom task list defined in a content type, you can use the value 0x01080100C9C9515DE4E24001905074F980F93160.

     

    BTW, when using ASP.NET for workflows you will need to build a feature receiver or use the default one in your feature.xml to assign the Url values because usually these Url values are not assigned properly when deploying your feature w/o a feature receiver.

    Saturday, February 9, 2008 5:55 AM
  • hey mate,

    i'm not quite sure about the TaskListContentTypeId, i'm kinda new to Workflow Foundation myself. but i downloaded a workflow template, and that helped me a bit. I got the TaskListContentTypeId from there, and it was TaskListContentTypeId="0x01080104"

     

    also, you can down the workflow starterkit template as well, which might help u out

     

    http://www.microsoft.com/downloads/details.aspx?familyid=5ddf902d-95b1-4640-b9e4-45440dc388d9&displaylang=en

     

     

    Tuesday, February 12, 2008 6:51 AM
  •  Tazaroo007 wrote:

    also, you can down the workflow starterkit template as well, which might help u out

     

    http://www.microsoft.com/downloads/details.aspx?familyid=5ddf902d-95b1-4640-b9e4-45440dc388d9&displaylang=en

     

    The link provided is for a Beta version of the workflow starter kit. The final one was added into the WSS SDK as linked here:

    http://www.microsoft.com/downloads/details.aspx?FamilyId=05E0DD12-8394-402B-8936-A07FE8AFAFFD&displaylang=en

     

    Regards,

    Paul

    Monday, March 24, 2008 1:27 AM

  • If this answers your question, please use the "Answer" button to say so | Ben Cline

     

     

    Please do NOT include this in your posts.

    Monday, March 24, 2008 1:09 PM