On-site enterprise install of SP 2013.
I have a list called Questions. This list has a Title, ID, and a custom field called "Question" that is a Multiple Line of Text field set to type: Plain Text.
I've created a second list called LPA_Questions that contains a Lookup to my Questions list. So far so good. Although I should note that I notice when setting up this custom column, the Question column is not one of my choices to display - I'm only offered Id, Title, Modified, Created Version.
So, I'm trying to execute a _api/web query on the LPA_Questions list and expand the Question field.
This works:
_api/web/lists/getbytitle('LPA_Questions')/items?$filter=&$top=0&$select=Id,Question/Id&$expand=Question
This does not:
_api/web/lists/getbytitle('LPA_Questions')/items?$filter=&$top=0&$select=Id,Question/Id,Question/Question&$expand=Question
Error:
The query to field 'Question/Question' is not valid.
Am I missing something obvious here?
$expand
only supports a limited set of column types. This other answer says that you can onlyselect/expand
columns that are single line of text, date/time, or number. I don't have a good way to work around this, other than to select the linkedQuestion
by ID using a second call.