Sharepoint REST字段属性不存在

时间:2015-05-29 21:21:16

标签: rest sharepoint postman

我正在使用Postman for Chrome来测试一些简单的使用Sharepoints REST Api的东西。

嗯 - 在尝试从列表中检索某些字段时,我在开始时遇到错误 - 这里有一些图片:

SharePoint列表:

enter image description here

调用CPU

enter image description here

调用RAM - 失败:

enter image description here

(EXmsg:字段属性'RAM'不存在)

任何人都有线索?我根本不明白这一点。

提前致谢!

P.S。

致电:

true

RAM将显示为“zzfu”的属性 - dafuq?

1 个答案:

答案 0 :(得分:3)

发生此错误,因为$select查询选项接受字段内部名称但 显示名称。

话虽如此,您可能需要先确定字段内部名称,例如:

/_api/web/lists/GetByTitle('Anwendungen')/fields?$select=InternalName&$filter=Title eq 'RAM'

确定字段内部后,您可以像这样查询字段值:

/_api/web/lists/GetByTitle('Anwendungen')/items?$select=<RAM internal name>

其中<RAM internal name>是RAM字段内部名称。