How to create a task in SharePoint using C #

I need to create tasks in a SharePoint task list using C #.

Can you use the SharePoint API for example SPList.Items.Add()

? I will not track the changes to the issue after creation. Or should I use the Outlook API?

0


source to share


1 answer


You got it the first time.



Use the SharePoint object model. It's pretty easy to operate and reasonably intuitive. The only thing you need to look at is filling in the fields (make sure they exist first, since SharePoint is configurable and someone might delete or rename the field), and when you've created SPWeb and SPSite objects, be sure to remove () from them afterwards.

+3


source







All Articles