Monday, July 15, 2013

CreateTaskWithContentType activity: An error occurred because the task trying to be created did not derive from the Workflow Task Content Type

Hi everyone,
I am a little bit lazy here to write anything :) So just a quick briefing:
1) When you use CreateTaskWithContentType activity you should create your content type or use existing content type
2) Used content type should be derived from Workflow Task Content Type
3) Second point could be a problem since Workflow Task Content Type is hidden

Here is post about this problem: http://social.msdn.microsoft.com/Forums/sharepoint/en-US/93679b02-bfa9-43c2-94ad-ec45191cd478/createtask-method-how-to-create-a-task-based-on-a-custom-content-type

Hope that helped...

No comments:

Post a Comment