{"id":40153,"date":"2021-03-24T00:15:10","date_gmt":"2021-03-24T07:15:10","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/premier-developer\/?p=40153"},"modified":"2021-03-18T09:21:16","modified_gmt":"2021-03-18T16:21:16","slug":"no-batch-no-problem","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/no-batch-no-problem\/","title":{"rendered":"No Batch No Problem"},"content":{"rendered":"<p><a class=\"x-hidden-focus\" href=\"https:\/\/www.linkedin.com\/in\/gunjandatta\/\" target=\"_blank\" rel=\"noopener\">Gunjan Datta<\/a> demonstrates how to expand sub-properties of an OData REST API request without using a batch request.<\/p>\n<hr \/>\n<p>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.<\/p>\n<h3 id=\"demo-example\">Demo Example<\/h3>\n<p>We will query a document set library with the following information:<\/p>\n<ul>\n<li>Document Set library named\u00a0<code class=\" highlighter-rouge language-plaintext\">Doc Set Demo<\/code><\/li>\n<li>Document Set content type renamed to\u00a0<code class=\" highlighter-rouge language-plaintext\">Dashboard Item<\/code><\/li>\n<li>Document Set item created and called\u00a0<code class=\" highlighter-rouge language-plaintext\">Test<\/code><\/li>\n<\/ul>\n<p>The folders\/files included in this item are:<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Name<\/strong><\/td>\n<td><strong>Type<\/strong><\/td>\n<td><strong>Path<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Document.aspx<\/td>\n<td>File<\/td>\n<td>\/Document.aspx<\/td>\n<\/tr>\n<tr>\n<td>Folder<\/td>\n<td>Folder<\/td>\n<td>\/Folder<\/td>\n<\/tr>\n<tr>\n<td>Document.aspx<\/td>\n<td>File<\/td>\n<td>\/Folder\/Document.aspx<\/td>\n<\/tr>\n<tr>\n<td>SubFolder<\/td>\n<td>Folder<\/td>\n<td>\/Folder\/SubFolder<\/td>\n<\/tr>\n<tr>\n<td>SubDocument.aspx<\/td>\n<td>File<\/td>\n<td>\/Folder\/SubFolder\/Document.aspx<\/td>\n<\/tr>\n<tr>\n<td>SubSubFolder<\/td>\n<td>Folder<\/td>\n<td>\/Folder\/SubFolder\/SubSubFolder<\/td>\n<\/tr>\n<tr>\n<td>SubSubDocument.aspx<\/td>\n<td>File<\/td>\n<td>\/Folder\/SubFolder\/SubSubFolder\/Document.aspx<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Our goal is to get all of this information in one request.<\/p>\n<p><a href=\"https:\/\/dattabase.com\/blog\/odata-expand\">Check out the full implementation here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":582,"featured_media":38022,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8745],"tags":[10612,324,335],"class_list":["post-40153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint","tag-odata","tag-rest","tag-sharepoint"],"acf":[],"blog_post_summary":"<p>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.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/40153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=40153"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/40153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/38022"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=40153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=40153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=40153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}