I am developing an integration between several systems and in one point I have to find the files inside a folder using the SharePoint REST API. The data I have to look for the folder is the List were it is and an attribute named "Código de material". I am by no means a SharePoint expert. So, I am sorry beforehand for the terms mistakes.

my folder screenshot

I have been trying with a few REST method but to no avail. For example:


returns this error message

<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>-1, Microsoft.SharePoint.Client.InvalidClientQueryException</m:code>
<m:message xml:lang="es-ES">La expresión "Código de Material='000000000000401426'" no es válida.</m:message>

What would be the correct way to filter a list by a given folder attribute?

FWIW I am using Java but the question is about the REST call really.

1 Answer 1


This should work:


You need to use internal column name in the query.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.