Tag Info

New answers tagged


I do it also most of the time with REST (ajax) like this: <script type="text/javascript"> $(document).ready(function() { // Rest URL var requestUri = "/_api/lists/getbytitle('MyList')/items"; $.ajax({ url: requestUri, type: "GET", headers: { "ACCEPT": ...


You can reference snippet below for getting list value through JSOM function retrieveListItems() { targetList = list.getByTitle("your list name"); //get the list details var camlQuery = new SP.CamlQuery(); //initiate the query object camlQuery.set_viewXml( '<View><Query><Where><Contains><FieldRef ...


You can use rest api to get this make a request to this page, it will return items in the list http://somesharepointsite/sites/viewstyle/_api/Web/Lists/GetByTitle('Employee List')/items?$select=To/Title,To/ID&$expand=To"


Your code seems correct to me. If it's not working it should be because the variable "resultList" doesn't point to the list you want. This line should be before the code you posted above: var resultList = context.get_web().get_lists().getByTitle('QuizList');

Top 50 recent answers are included