如何在 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/