sharepoint-2013 - 尝试读取导航属性的值时发现具有非空值的“PrimitiveValue”节点;

标签 sharepoint-2013 sharepoint-list sharepointdocumentlibrary

如何在 SharePoint 列表中使用 REST API Post 保存文档库查找字段?
我试过

'docItem':'1;#test'

但是,它抛出一个错误:

{
  "error": {
    "code": "-1,Microsoft.SharePoint.Client.InvalidClientQueryException",
    "message": {
      "lang": "en-US",
      "value": "A 'PrimitiveValue' node with non - null value was found when trying to read the value of a navigation property;however, a 'StartArray' node, a 'StartObject' node, or a 'PrimitiveValue' node with null value was expected."
    }
  }
}

Bad Request

最佳答案

假设查找字段名称是 docItem,只需使用

'docItemId':1

会做的伎俩。

关于sharepoint-2013 - 尝试读取导航属性的值时发现具有非空值的“PrimitiveValue”节点;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21338761/

相关文章:

ios - 如何在 SharePoint 2013 网站上托管 iOS IPA?

css - SharePoint ListView JSON 格式悬停颜色

javascript - 如何在Sharepoint App中检索Sharepoint列表?

excel - 文档库版本

html - 将 Publishing HTML 列值插入 MS word 文档

azure - 购买 Microsoft 365 后下一步做什么?

list - SharePoint 2013 - 要素架构包含错误的字段名称 : feature name = [GUID], 字段名称 [字段名称]

c# - 在 SSIS 中使用 C# 连接到 SharePoint 列表

javascript - Sharepoint 文档库 - 使用 javascript 将文件名命名为标题