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

Filter by SystemChangedAt on BC OData API

(1) ShareShare
ReportReport
Posted on by 5

Hello guys,

I'm creating an integration between BC and my system, and I need to sync Jobs as Job Tasks, using OData it is possible to filter using the $filter query string.

So far so good, but I'd like to filter by most recent changes, and most of the entities have SystemCreatedAt and SystemModifiedAt fields, but I can't do 

GET https://api.businesscentral.dynamics.com/v2.0/{{tenantID}}/{{env}}/ODataV4/Job_Task_Lines?$skip=999&$top=10&$filter=SystemModifiedAt gt '2022-01-01'


I got an error
{
  "error": {
    "code": "BadRequest",
    "message": "Could not find a property named 'SystemModifiedAt' on type 'NAV.Job_Task_Lines'.  CorrelationId:  56d3ae6a-0877-411a-b2ef-68a0f0b7cd27."
  }
}

Is there another way to filter by changes given a date?

  • Suggested answer
    DAnny3211 Profile Picture
    11,427 Super User 2026 Season 1 on at

    hi

    you should create similar fields with the same logic

    DANiele

  • Suggested answer
    YUN ZHU Profile Picture
    103,773 Super User 2026 Season 2 on at

    Hi, There is nothing wrong with your Get statement and filter.
    It's just that you didn't add the SystemCreatedAt and SystemModifiedAt fields to the page. They are in the table but not guaranteed to be in the Webservice.

    I did a test with a standard Web Service.

    First of all this field needs to exist on the page.

    pastedimage1668648243170v1.png

    Then add filter.

    api.businesscentral.dynamics.com/.../Sales_Lines_Excel gt 2022-10-03

    pastedimage1668648314574v2.png

    Hope this helps.
    Thanks.

    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 727 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 512 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 321 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans