SPClientContext.Credentials = new SharePointOnlineCredentials(username, securePassword);
//https://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
Web SPWeb = SPClientContext.Web;
List SPlist_CSV = SPWeb.Lists.GetByTitle("Supplier Master List");
View SPview_CSV = SPlist_CSV.Views.GetByTitle("_Data Pending Export to CSV");//oracle export field
SPClientContext.Load(SPview_CSV);
SPClientContext.ExecuteQuery();
CamlQuery query = new CamlQuery();
query.ViewXml = SPview_CSV.ViewQuery;
ListItemCollection items = SPlist_CSV.GetItems(query);
SPClientContext.Load(items);
SPClientContext.ExecuteQuery();
foreach (var item in items)
{
//some field/item missing?
}
您好,我使用上面的代码从SharePoint在线检索数据。起初,它运作良好。
但是,当我在SharePoint上的视图_Data Pending Export to CSV
添加新列时,我发现新添加的字段丢失了。有什么想法吗?
答案 0 :(得分:0)
确定。我发现了其他问题,查找字段超限。我所做的就是将我的查找字段更改为单行文本字段,然后使用工作流填充新的单行文本字段。