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 :
Finance | Project Operations, Human Resources, ...
Answered

How to filter baseenum in OData ?

(2) ShareShare
ReportReport
Posted on by 395
Hi guys,
 
When filtering Odata, as per my understanding, we need to use the keyword /eq/ for equal or /ne/ or not equal. 
How to filter field with BaseEnum Type ? for example I want to filter warehouses with Type not Transit
 
In Postman, I hit this error:
 /message/: /An error has occurred./,
 /message/: /A binary operator with incompatible types was detected. Found operand types 'Microsoft.Dynamics.DataEntities.InventLocationType' and 'Edm.Int32' for operator kind 'NotEqual'./,
 
Thanks
 
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,892 Most Valuable Professional on at
    It should be something like WarehouseType ne Microsoft.Dynamics.DataEntities.InventLocationType'Transit'.
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    26,398 Super User 2025 Season 2 on at
    Hi @Teevo,
     
    Please refer to this :
     
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at
    Hi Teevo,

    Martin is correct. You can read more about how to use OData with Dynamics 365 F&O entities on Microsoft Learn: Open Data Protocol (OData) - Finance & Operations | Dynamics 365 | Microsoft Learn 
  • Teevo Profile Picture
    395 on at
    Hi Martin,
     
    Is that also valid inside Postman ?
     
    I had this error though:
  • Teevo Profile Picture
    395 on at
    Hi all,
     
    Sorry. I overlooked at the "dot" after the BaseEnum name, which supposed to not needed.
     
    Issue solved.
     
    I hope I can mark as resolved. If not, kindly help to mark all answers.
     
    Thanks.
  • Martin Dráb Profile Picture
    237,892 Most Valuable Professional on at
    Yes, sorry, it was my mistake when copying the enum type name.
  • Teevo Profile Picture
    395 on at
    Hi Martin,
     
    No problem. Kindly help to mark all answered as resolution ?
    Many Thanks.
  • Layan Jwei Profile Picture
    8,112 Super User 2025 Season 2 on at
    Hi Teevo,
     
    Are you still facing the same issue when verifying answers? Because the community mentioned that the issue is resolved now. So please confirm if it's still not solved so that we raise it

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans