Share via

REST API filter on FileDirRef

Anonymous
2015-11-11T04:05:56+00:00

Hi,

I am querying the items of a document library with a rest call to "/web/lists/getbytitle('xxxx')/items". The call is used to populate a tree view component with all files and folders. As there could be lots of them the component does the Rest call one dir Level at a time. So if someone clicks on a Folder it will query the content of that folder. This is achieved by setting a filter on "FileDirRef eq xxxx".

All of that works perfectly well in SharePoint 2013 on premises. Unfortunately, that same query doesn't work in Office 365. It returns an empty result. In another forum someone proposed to use the Rest functions for retrieving files and folders. But these are two distinct calls for getting both which would be inefficient and means that I have to merge those two results by myself. The treeview component doesn't support that way either so it is of no use for me.

I can't see any reason why this filter only works on premises. It just seems like a bug to me. Is there any good way to report this bug to Microsoft? In my experience reporting problems that are somehow related to development to the normal Microsoft support will get blocked by telling me "learn how to develop"... As bugs like this block people from moving to the cloud, I think it should be of interest for Microsoft to get that solved. But it's hard to find the right person in such a big company.

Microsoft 365 and Office
Microsoft 365 and Office

A comprehensive suite of productivity tools and cloud services that enhance collaboration, communication, and efficiency. Combining classic Office apps with advanced Microsoft 365 features, it supports both personal and business needs

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2015-11-11T07:15:50+00:00

    Hi Christian,

    Regarding this requirement, I would like to suggest you submit feedback to our related team via UserVoice since this is the best way to influence(or improve) the product. Many features have been designed or upgraded based on our customers' constructive comments.

    Regards,

    Allan

    Was this answer helpful?

    0 comments No comments