Skip to main content
improved formatting
Source Link
Asad Refai
  • 6k
  • 8
  • 35
  • 57

Order by Rest API + Sharepointin SharePoint 2013

var restURLAuthors = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('GoGreenReport')/items?$select=EncodedAbsUrl,FileRef&$filter=Project_x0020_Name eq '"+$("#ddnProjectName").val()+"'";

var restURLAuthors = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('GoGreenReport')/items?$select=EncodedAbsUrl,FileRef&$filter=Project_x0020_Name eq '"+$("#ddnProjectName").val()+"'";

i want to add order by descending order of items? Where and how to write order by in this code specifically?

Order by Rest API + Sharepoint 2013

var restURLAuthors = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('GoGreenReport')/items?$select=EncodedAbsUrl,FileRef&$filter=Project_x0020_Name eq '"+$("#ddnProjectName").val()+"'";

i want to add order by descending order of items? Where and how to write order by in this code specifically?

Order by Rest API in SharePoint 2013

var restURLAuthors = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('GoGreenReport')/items?$select=EncodedAbsUrl,FileRef&$filter=Project_x0020_Name eq '"+$("#ddnProjectName").val()+"'";

i want to add order by descending order of items? Where and how to write order by in this code specifically?

Source Link
OM-ॐ
  • 661
  • 2
  • 12
  • 34

Order by Rest API + Sharepoint 2013

var restURLAuthors = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('GoGreenReport')/items?$select=EncodedAbsUrl,FileRef&$filter=Project_x0020_Name eq '"+$("#ddnProjectName").val()+"'";

i want to add order by descending order of items? Where and how to write order by in this code specifically?