简体   繁体   English

SharePoint REST API结果不包含查找字段

[英]SharePoint REST API result not containing lookup field

I have a simple rest call on a lookup field: 我在查找字段上有一个简单的休息电话:

_api/web/lists/getbytitle('Planning')/items(1)/?$select=Surveyor

however this returns 400, i know the field is definitely in the Planning list and it is a site column, 但是返回400,我知道该字段肯定在“规划”列表中,并且是“网站”列,

I do however, see SurveyorId, but i cant expand this. 但是,我确实看到了SurveyorId,但是我无法对此进行扩展。

Sorry for little information, thanks in advance. 抱歉,信息很少,谢谢。

does this field require expansion? 这个领域需要扩展吗? if so make sure to try: 如果是这样,请确保尝试:

_api/web/lists/getbytitle('Planning')/items(1)/?$select=Surveyor/Title&$expand=Surveyor/Title _api / web / lists / getbytitle('Planning')/ items(1)/?$ select = Surveyor / Title&$ expand = Surveyor / Title

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM