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 :
Small and medium business | Business Central, N...
Answered

Business Central API Filters Error

(3) ShareShare
ReportReport
Posted on by 23
Hi Team,

I want to Use two filters in API Date and Time both Columns need to be filter but it filter till date but when i try to mention time it gives me error

https://api.businesscentral.dynamics.com/v2.0/xxxxxxxxxxxxxxxxxxxxxxxx/Production/ODataV4/Company('HB%20POS')/TransactionRegister/?$filter=Date eq 2025-03-11

above is my API for Use and Till Date API it is working Fine But after using Time Column to Be filtered getting this Error 
 
{
    "error": {
        "code": "BadRequest",
        "message": "A binary operator with incompatible types was detected. Found operand types 'Edm.String' and 'Edm.TimeOfDay' for operator kind 'Equal'.  CorrelationId:  bb17c4ac-ad41-4410-837b-4e90684cd0c9."
    }
}
 
Regards,
Shahrukh khan
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,434 Super User 2025 Season 2 on at
    Hi,
     
    I hope this can help you and give you some hints.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Gerardo Rentería García Profile Picture
    25,236 Most Valuable Professional on at
  • Nitin Verma Profile Picture
    21,708 Moderator on at
    Hi,
    In your api can you try this filter
     
    $filter(date eq 2025-03-11 and Time eq time'09:00:00')
     
  • Verified answer
    SK-14101306-0 Profile Picture
    23 on at
    Finally I found an Answer Thank you so much for your Supports

    https://api.businesscentral.dynamics.com/v2.0/97e86d50-e0e3-4cff-9982-fc2eb4fcb4ff/Production/ODataV4/Company('HB%20POS')/TransactionRegister/?$filter=date eq 2025-03-11 and Time gt '17:10:40'

    and Thank you so much @Nitin Verma for Help 
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,601 Super User 2025 Season 2 on at

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans