Skip to main content

Notifications

Dynamics 365 general forum

What is the maximum condition parameter can pass in query expression/fetchxml

Posted on by Microsoft Employee

 I have a query expression which has a lot of  condition for account entity so what is the maximum limitation for condition parameter for Online D365 CRM.

Example: I wan to retrieve list of accounts using Query Data by Web API

so i am passing 'n' number account numbers like filter=accountnumber eq '2456' or accountnumber eq '2457' or accountnumber eq '2458'  or......

Thanks

Gokul JB

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: What is the maximum condition parameter can pass in query expression/fetchxml

    Thanks LeoArt for valuable input, i can focus on based on URL limitation.

    Here we can't use contains since contains find specific string but in my case i want to fetch list of different account numbers based on passed account number parameter

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: What is the maximum condition parameter can pass in query expression/fetchxml

    Hi Gokul,

    About the limits of Dynamics Web Api, Microsoft only provided this article without mentioning the url limitation.

    docs.microsoft.com/.../api-limits

    OData/Web Api itself doesn't limit the length of the request Url, but most browsers and servers have different limitations for url.

    I recommend you to use "contains" conditions instead of "or" so that you could save many space.

    Here is a similar issue for referring to.

    community.dynamics.com/.../119672

    Hope it helps.

    Best Regards

    Leo

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: What is the maximum condition parameter can pass in query expression/fetchxml

    Hello,

    Check following post - stackoverflow.com/.../what-is-the-maximum-length-of-a-url-in-different-browsers

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans