如何使用SSIS脚本任务更新SharePoint列表

时间:2019-05-09 12:51:29

标签: c# sharepoint ssis

我有用于上传连接到SSIS的数据库的CSV文件,我需要使用数据库中的信息更新SharePoint列表中的信息。该代码应使用C#编写。

这是我到目前为止写的:

List announcementsList = context.Web.Lists.GetByTitle("SAP PRs");
ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation();
ListItem newItem = announcementsList.AddItem(itemCreateInfo); 
newItem["Title"] = "My New Item!"; newItem["Body"] = "Hello World!"; 
newItem.Update(); 
Dts.TaskResult = (int)ScriptResults.Success;

0 个答案:

没有答案