Two REST SharePoint query simultaneously
Two REST SharePoint query simultaneously
stockdevelopers
Posts: 1Questions: 0Answers: 0
Hi,
I using this tips:
http://summit7systems.com/who-needs-a-data-view-web-part-sharepoint-rest-and-datatables-net/
I get data from one SharePoint library:
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('ZipCodes')/items?$select=Title,Column2,Column3&$filter
=(Column3 eq '"+state+"')&$top=5000",
But how get data from two libraries and display all in one
DataTable? Option below does not work.
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('Library1')/items?$select=Title,Column2,Column3&$filter
=(Column3 eq '"+state+"')&$top=5000",
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('Library2')/items?$select=Title,Column2,Column3&$filter
=(Column3 eq '"+state+"')&$top=5000",[/code]
Thanks in advance, I will be very gratefull!
I using this tips:
http://summit7systems.com/who-needs-a-data-view-web-part-sharepoint-rest-and-datatables-net/
I get data from one SharePoint library:
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('ZipCodes')/items?$select=Title,Column2,Column3&$filter
=(Column3 eq '"+state+"')&$top=5000",
But how get data from two libraries and display all in one
DataTable? Option below does not work.
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('Library1')/items?$select=Title,Column2,Column3&$filter
=(Column3 eq '"+state+"')&$top=5000",
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('Library2')/items?$select=Title,Column2,Column3&$filter
=(Column3 eq '"+state+"')&$top=5000",[/code]
Thanks in advance, I will be very gratefull!
This discussion has been closed.