web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Odata CRM

(1) ShareShare
ReportReport
Posted on by 162

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>');
                })
            })
        });
});

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    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

  • Suggested answer
    11manish Profile Picture
    757 on at
    try below with pagination :
     
    var get_FilteredOut = "/_odata/account/?$select=accountid,name&$filter=ownerid/Id eq (guid'" + user + "')&$top=100";

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans