CAML query to add a ListItem in Sharepoint

折月煮酒 提交于 2020-01-06 05:41:15

问题


my CAML query to add a ListItem (Wiki Page) doesn't work. I've tried several fields, but Sharepoint always creates empty pages.

Here is my CAML so far:

    <Batch OnError="Continue">
        <Method ID="1" Cmd="New">
         <Field Name="WikiField">My Wiki Content</Field>
        </Method>
      </Batch>

回答1:


Try this

<Batch OnError="Continue">        
     <Method ID="1" Cmd="New">         
          <Field Name="urn:schemas-microsoft-com:office:office#WikiField">My Wiki Content</Field>        
     </Method>      
</Batch>


来源:https://stackoverflow.com/questions/965581/caml-query-to-add-a-listitem-in-sharepoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!