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

I have tried to create a project task list programmatically but failed. I checked google but did not find any answer/sample. Is it possible to programmatically create a Project Task list?


share|improve this question
try this link might help… – Mathematics Sep 19 '12 at 16:01
up vote 2 down vote accepted

You can look into this tutorial


I guess this is what your looking for.

share|improve this answer
I think he's after creating a list - not individual records – Ryan Sep 20 '12 at 13:05
creating a list shouldn't be difficult then, all he needs to do is key in right list template id :) – Mathematics Sep 20 '12 at 13:06
yes - but thats what hes actually asking (I think - hard to tell) – Ryan Sep 20 '12 at 13:08
Thank you all, I have solved the issue by doing something like this: Guid id = web.Lists.Add("name", "description", SPListTemplateType.GanttTasks); – Medes Sep 21 '12 at 11:26

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.