I have a standard document library with one added field StudyId (string). I can't figure out how to retrieve files using a filter on that field.
I retrieve files as following:
http://test-site/_api/web/lists/GetFolderByServerRelativeUrl('/tmgt/StudyDocuments')/Files
if I add a filter ?$filter=StudyId eq 123456
I get an error that StudyId field doesn't exist.
For file items fields are returned as properties, so I guess filtering is different, but I can't find out the proper way
Any ideas?