Take the 2-minute tour ×
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?

Thanks.

share|improve this question
    
try this link might help code.msdn.microsoft.com/office/… –  SharePointer Sep 19 '12 at 16:01

1 Answer 1

up vote 2 down vote accepted

You can look into this tutorial

programatically-creating-and-assigning-a-sharepoint-task/

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 :) –  SharePointer 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
1  
good now you can accept my answer or answer to yourself to increase your accept rate :) –  SharePointer Sep 24 '12 at 16:00

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.