Forum Discussion

Mike Jansen's avatar
Mike Jansen
Iron Contributor
Mar 21, 2017
Solved

Rest api search query --- Lookup field issue

I have a document library which has a custom field "Label" this Label field is a lookup field (to a list) multiple values allowed. For example my documentlibrary:   Title          Label doc1      ...
  • Luis Mañez's avatar
    Luis Mañez
    Mar 22, 2017
    Haven't tested it, but it should work with the $filter:

    /_api/web/lists/GetByTitle('Documents')/items?$select=*,Label/Title&$expand=Label&$filter=Label/Title eq 'labelX'

    Let us know how it goes.

Resources