I've been trying to use SharePoint REST API to retrieve a number of files on my site but for some reason, if it does tell me the name or descriptions of the files, it returns null for every single custom columns I have for those files.
Here's the code I use:
const path = "Path:" + AppState.context.pageContext.web.absoluteUrl + "/* "; const url = AppState.context.pageContext.web.absoluteUrl + "/_api/search/query?querytext='" + path + "IsDocument:true'&selectproperties='Status,Title,Path,Created,Description,MGS_Hierarchy'";
and here are the example of a result:
As you can see, the "Status" and "MGS_Hierarchy" values are null, even tough they are set in the list:
The two columns are inherited from a custom content type. I don't know if it changes something.
Any help is greatly appreciated.