Feb 22 2021
Feb 23 2021
I have a CAML query that I am running through the REST api, the simple example below requests 2 fields - FileLeafRef and CustomField. Custom field is simple a text field, nothing special.CustomField is returned whereas FileLeafRef is not.If I run the same CAML via CSOM or the old WCF/soap based services then FileLeafRef is returned...
<FieldRef Name="FileRef" />
<FieldRef Name="FileLeafRef" />
<FieldRef Name="CustomField" />
I know I can use a $select querystring, but this is on an app that the user can specify any number of columns to retrieve and querystrings have a limit.So is there something I am missing? Or does REST CAML act differently to the other two...N.b this is against SharePoint Online
I should add this is being called via a post to an endpoint like https://tenant.sharepoint.com/SomeSite/_api/web/lists(guid'listGuid')/getitems