Skip to main content

Hi
I am trying to call the following function for a sharePoint list in a smart-object.

 

$(document).ready(function () {
alert("1");

alert("2");
$.ajax({
url: "https://k2.denallix.com:8888/SmartObjectServices/REST/SharePoint%202013/portal%2Edenallix%2Ecom/DocumentMetaData/Get List?$top=5",
method: "GET",
contentType: "application/json; charset=utf-8",
dataType: "JSON",
async: true,
beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("Accept", "application/json");
},
crossDomain: false,
error: function (request, status, error) {
alert("==Error==" + request.text + "==Error==" + status + "==Error==" + error.te);
},
success: function (data, text) {
alert("Success");
}
});

});

But I am getting an error/alert undefined.

 

But the list /Object  is there.

 

14117iA7BADF911C01B765.png

 

Please help me in this regard

 

Be the first to reply!

Reply