I am trying to get list data with an id
from my SharePoint online through REST
. I have my ajax
call like below.
getFunction:function(id){
return new Promise(function (resolve, reject) {
$.ajax({
async: true,
method: 'POST',
url:myUrl+"/_api/web/lists/GetByTitle('ABExtensionStore')/RenderListDataAsStream",
headers: {
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
},
success: resolve
});
});
}
As i was using the RenderListDataAsStream
it is giving entire list data. But I need only few columns with an id
. So can anyone suggest how to query those list items. Any help will be appreciated.