Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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… –  Please Teach Sep 19 '12 at 16:01

1 Answer 1

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 :) –  Please Teach 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.