Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : kdzD1Q4/iUMzBRhKOIPac+
Small and medium business | Business Central, N...
Suggested answer

Business Central API Filters Error

Like (2) ShareShare
ReportReport
Posted on 13 Mar 2025 08:08:44 by 10
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
  • Suggested answer
    SK-14101306-0 Profile Picture
    10 on 13 Mar 2025 at 11:46:31
    Business Central API Filters Error
    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 
  • Nitin Verma Profile Picture
    21,372 Moderator on 13 Mar 2025 at 11:21:39
    Business Central API Filters Error
    Hi,
    In your api can you try this filter
     
    $filter(date eq 2025-03-11 and Time eq time'09:00:00')
     
  • gdrenteria Profile Picture
    15,252 Most Valuable Professional on 13 Mar 2025 at 10:59:59
    Business Central API Filters Error
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    16,893 Super User 2025 Season 1 on 13 Mar 2025 at 09:46:33
    Business Central API Filters Error
    Hi,
     
    I hope this can help you and give you some hints.
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,845 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,717 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans