webapi.safeAjax({
type: "GET",
url: "/_api/<my table plural name>?$select=<my columns>&$filter=<my id column> eq " + applicationId + " and <my name> ne '" + Date.now() + "'",
contentType: "application/json",
headers: {
"Prefer": "odata.include-annotations=*"
},
success: function (data, textStatus, xhr) {
var results = data;
// YOUR LOGIC HERE
for (var i = 0; i < results.value.length; i++) {
var result = results.value[i];
}
},
error: function (xhr, textStatus, errorThrown) {
console.log(xhr);
}
});
here is my code, let me know if that works
btw.. you don't need to specify your "portal url".. if you just add "/_api/" it should return your portal root url