Skip to main content
Community site session details

Community site session details

Session Id : sSFc7OqlDcq60fQGcdarkT
Power Pages - Power Apps Portals
Unanswered

OData Feed: Filter on lookup name?

Like (0) ShareShare
ReportReport
Posted on 28 Jul 2021 13:17:24 by

I've tried to scavenge the internet for this but without any luck. I want to filter on a lookup-fields name value. According to the schema the property is a complex type of EntityReference. I have seen someone suggest (e.g. https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/251843/odata-query-for-filter-on-basis-of-value-in-a-lookup-field-not-by-guid/702721 ) that it could be achieved using 

 

/_odata/MyEntity/mylookupfield/Name eq 'somevalue'

 

Like you can using 

 

/_odata/MyEntity/mylookupfield/Id eq guid'my-guid'

 

which works but I don't wont to filter by Id but rather the Name property. Is this the right way or is it even possible?

  • Community Power Platform Member Profile Picture
    on 29 Jul 2021 at 10:56:22
    Re: OData Feed: Filter on lookup name?

    Hi @v-xiaochen-msft 

     

    Who said anything about uniqueness? I just want to do a normal filter just like I can do on other properties. I can easily do it on the Dataverse API but this implementation seems to be completely different even though they are supposedly both OData.

  • v-xiaochen-msft Profile Picture
    on 29 Jul 2021 at 07:00:06
    Re: OData Feed: Filter on lookup name?

    Hi @Anonymous ,

     

    Unfortunately it's impossible.

    GUID ensures uniqueness. 

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • Community Power Platform Member Profile Picture
    on 29 Jul 2021 at 06:51:27
    Re: OData Feed: Filter on lookup name?

    Hi @v-xiaochen-msft 

     

    Maybe I didn't phrase it well enough but I'm not interested in filtering by the GUID but by the Name property of the lookup field.

  • v-xiaochen-msft Profile Picture
    on 29 Jul 2021 at 04:02:20
    Re: OData Feed: Filter on lookup name?

    Hi @Anonymous ,

     

    I assume I have a lookup column named 'crba2_test103_lookup'.

    vxiaochenmsft_0-1627531248037.png

     

    You should use '_crba2_test103_lookup_value' instead of 'crba2_test103_lookup'.

    For example:

    vxiaochenmsft_1-1627531315021.png

     

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!