So I am messing around with REST and BAQs and have a simple page I am trying to return data to. This is all new to me so just seeing what I can accomplish. I can’t get any data to even show in the console. I created the jquery.js and added Ajax extension. I must be overlooking something very simple, anything you can see?
var settings = {
"url": "https://erp10/ERP102500/api/v1/BaqSvc/66457-OpenClaims",
"method": "GET",
"timeout": 0,
"headers": {
"Authorization": ["Basic xxxxxxx=", "Basic xxxxxx=="]
},
};
alert("Start")
$.ajax(settings).done(function (response) {
if (response == 'true'){
alert("DataResponse")
}
else{
alert("NoResponse")
}
Console.log(response)
});
alert("done")