hi.
i have jquery written on my entity list to filter two lookup field. it only retrieve 10 records. i want to increase it more. how can i do that?
regards
$(document).ready(function () {
$("#dropdown_0").on(
"change",
function (eventObject) {
var user = $('#dropdown_0').val();
//alert(user);
var get_FilteredOut = "/_odata/account/?$filter=ownerid/Id%20eq%20(guid%27" + user + "%27)";
$.ajax({
type: "GET",
url: get_FilteredOut,
dataType: 'json'
}).done(function (json) {
var values = json.value;
values.push({ accountid: "", name: "" });
values = values.reverse();
$("#dropdown_3").empty();
$.each(values, function (index, value) {
$("#dropdown_3").append('<option value="' + value.accountid + '">' + value.name + '</option>');
})
})
});
});
looks like the code is calling a custom api and not directly the crm odata
var get_FilteredOut = "/_odata/account/?$filter=ownerid/Id%20eq%20(guid%27" + user + "%27)";
and also if that url was a crm odata, the limit would be 5000 records, there is nothing in the code you posted that limit the records to 10.
check that api endpoint logic.
hope it helps
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156