Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When I create a task with activity "CreateTaskWithContentType", I can't bind a custom ContentType with the list "Tasks".

For the moment I try to bind my CT with the correct path in properties windows and by this way in file "Workflow1.cs":

task1.ContentTypeId1 = "0x01080100c3f79a5973a84faaab4ac83e939ec5ef";

ContentTypeId1 is an DependencyProperty of task1.

But it doesn't work. The CT is on my solution because when I check it in "Site Settings/Site Content Type", I find it.

Do you have any idea how I can do this ?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Have you associated the content type with the task list for the workflow?

See A few things you should know about CreateTaskWithContentType in SharePoint Workflow

share|improve this answer
    
Thank you. It works fine. –  Thoma Bigueres Jul 18 '12 at 12:45

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.