简体   繁体   中英

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,

I do however, see SurveyorId, but i cant expand this.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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