Gunjan Datta demonstrates how to expand sub-properties of an OData REST API request without using a batch request.
This post will go over how to expand sub-properties of an OData REST API request without using a batch request. This will be useful in SharePoint 2013+ On-Premise environments where the batch request is not available.
Demo Example
We will query a document set library with the following information:
- Document Set library namedÂ
Doc Set Demo
- Document Set content type renamed toÂ
Dashboard Item
- Document Set item created and calledÂ
Test
The folders/files included in this item are:
Name | Type | Path |
Document.aspx | File | /Document.aspx |
Folder | Folder | /Folder |
Document.aspx | File | /Folder/Document.aspx |
SubFolder | Folder | /Folder/SubFolder |
SubDocument.aspx | File | /Folder/SubFolder/Document.aspx |
SubSubFolder | Folder | /Folder/SubFolder/SubSubFolder |
SubSubDocument.aspx | File | /Folder/SubFolder/SubSubFolder/Document.aspx |
Our goal is to get all of this information in one request.
0 comments