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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Filter my lookup field by name through odata

(0) ShareShare
ReportReport
Posted on by

Hi, I am able to fetch data query by lookup field by ID : https://<myTenantURL>/_odata/auditset?$filter=cyno_account/Id eq (guid'356712b6-a0be-ea11-a812-000d3a378ab9'). But i want lookup field based on name please help... ?

I have the same question (0)
  • PabloCRP Profile Picture
    1,088 on at

    Hi Ashishjoshi98,

    you could do something like

    $filter=cyno_account/cyno_name eq 'CONTOSO'

    regards

    please consider marking as an answer if it was helpful
  • Community Member Profile Picture
    on at

    Thanks I have tried this before but it is not working and displaying error ->This XML file does not appear to have any style information associated with it. The document tree is shown below.

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    Thank you for your query.

    Filters on Single-valued navigation properties (Lookups) are applied using IDs (as far as I know).

    Furthermore, it is not a good idea to search using name (as it can return duplicates).

    I would recommend you to reverse your query, that means, queary on cyno_account and then expand on Auditset.

    You can use any or all operator to expand on child entities using filters:

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-data-web-api#any-operator

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans