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

Announcements

No record found.

News and Announcements icon
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 405
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
    239,038 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,801 Super User 2026 Season 1 on at
    Hi @Teevo,
     
    Please refer to this :
     
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Verified answer
    André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 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
    405 on at
    Hi Martin,
     
    Is that also valid inside Postman ?
     
    I had this error though:
  • Teevo Profile Picture
    405 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
    239,038 Most Valuable Professional on at
    Yes, sorry, it was my mistake when copying the enum type name.
  • Teevo Profile Picture
    405 on at
    Hi Martin,
     
    No problem. Kindly help to mark all answered as resolution ?
    Many Thanks.
  • Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans