Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Can not filter on Expanded fields using Web API O-DATA 4.0 Dynamics CRM 365 v9.0

Posted on by 732

hello every one,

Im on D365 v9.0 , and i'm working with Web API,  it's working fine for simple retrieve or post requests. Now i am trying to apply filter on a field of a related entity as shown below. i have tried all the combinaisons that've found on the internet but i am always getting bad request.

can any one tell me what's wrong with the following request?

https:/URL /api/data/v8.2/incidents

?$select=_new_contact_value

&$expand=new_contact($select=firstname)

&$filter=new_contact/firstname eq 'contact1'


Thanks,

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Can not filter on Expanded fields using Web API O-DATA 4.0 Dynamics CRM 365 v9.0

    Hello,

    Here is what possible - docs.microsoft.com/.../gg334767(v=crm.8)

    If you have complex query I would recommend to use fetchXml instead - docs.microsoft.com/.../mt607533(v=crm.8)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans