locked
how to create a workflow using createTaskwithcontenttype by using visual studio 2008 sharepoint 207 RRS feed

  • Question

  • I wanted to create a contenttype using custom worklfow in v s2008 for document approval how to create a  createTaskwithcontenttype and set the correlation token.. after trying i have  proble when i create a onworkflowactivated event i works fine as soon i add the  createTaskwithcontenttype i get error as Error occured....can anyone plaese help me


    • Edited by Perumalini Monday, May 23, 2011 8:24 AM
    • Moved by Mike Walsh FIN Monday, May 23, 2011 8:26 AM wf q (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    Wednesday, May 18, 2011 1:19 PM

Answers

  • Hi,

    First you need one content type id that you can set in the CreateTaskwithcontenttype properties.

    See the example in the site:

    http://msdn.microsoft.com/en-us/library/ff649365.aspx

     

     

     

     


    Cheers, Sanjiv Kumar Sanjiv Blog | LinkedIn
    • Marked as answer by Perumalini Friday, May 20, 2011 6:21 AM
    Thursday, May 19, 2011 1:23 PM

All replies

  • Hi,

    First you need one content type id that you can set in the CreateTaskwithcontenttype properties.

    See the example in the site:

    http://msdn.microsoft.com/en-us/library/ff649365.aspx

     

     

     

     


    Cheers, Sanjiv Kumar Sanjiv Blog | LinkedIn
    • Marked as answer by Perumalini Friday, May 20, 2011 6:21 AM
    Thursday, May 19, 2011 1:23 PM
  • Please paste your error detail. It is most likely to be something related to the Correlation Token. For the createTaskWithContentType, you will need to set it to a valid content type. Then with a new task correlation token (task Token).

    If you still have issues, look out for the error in 12\logs folder. Look for Workflow Infra event type.

    Regards

    Ranga

    Thursday, May 19, 2011 1:55 PM
  • thanks

     

    Monday, May 23, 2011 5:11 AM