2016-10-19 3 views
0

Microsoft.SharePoint.Client를 사용하여 프로그래밍 방식으로 Sharepoint 목록 항목의 V3Comments (Append-Only Comments) 열에 추가 할 수 있기를 바랍니다. 나는 유사한 시퀀스를 사용하고프로그래밍 방식으로 추가 Sharepoint에 설명 추가 목록 항목

: 나는이 작업을 수행 할 때

using (ClientContext context = new ClientContext("path_to_site")) 
{ 
    List list = context.Web.Lists.GetByTitle("list_name"); 

    CamlQuery query = new CamlQuery(); 
    ListItemCollection list_items = list.GetItems(query); 
    context.Load(list_items); 
    context.ExecuteQuery(); 

    ListItem list_item = list_items[0]; 

    list_item["V3Comments"] = "New comment."; 
    list_item.Update(); 
    context.ExecuteQuery(); 
} 

은, 다음의 InnerException가 발생합니다 :

필드 또는 속성 "AttachmentFiles"는 존재하지 않습니다.

이 작업을 수행하기 위해 필요한 포인터가 유용 할 것입니다.

답변

0

사용중인 목록에 첨부 파일을 사용하도록 설정했는데 (실제로 사용하지는 않았지만). 첨부 파일을 사용하지 않도록 설정 한 다음 일정 시간 동안 그대로두면 의도 한대로 작동합니다.

나는 이유를 설명 할 수 있으면 좋겠지 만, 그것은 순수한 추측 일 것입니다.

첨부 파일이있는 목록에 대해 이것이 어떻게 수행되는지는 잘 모릅니다.

관련 문제