SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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.