Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

OData extract Entities modified since a date

(0) ShareShare
ReportReport
Posted on by

Hi,

I am looking to extract entities that have been modified since a specific date.

However ( for example entity SalesOrderHeaders ) I can't see any ModifitedData when I query the odata feed. For example, i am doing a get mybaseurl/data/SalesOrderHeaders?cross-company=true the response doesn't include any Modified data so I assumed there isn't.

How could I perform this filtered extract ? I will avoid me extracting the whole dataset every time.

Regards

Vincent Diallo-Nort

  • Blue Wang Profile Picture
    on at
    RE: OData extract Entities modified since a date

    HI Vincent Diallo-Nort.

    Agree to enable change tracking.

    Another way is to use a computed column (Martin mentioned). You can use the SysComputedColumn::returnField () method to get the modified field .

    However, there is a problem to note that some data source tables do not have ModifiedDateTime enabled.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    294,261 Super User 2025 Season 1 on at
    RE: OData extract Entities modified since a date

    Hi Vincent,

    I have used BYOD as a step in between. When you enable change tracking and schedule at least once a day, you would have your information. In BYOD, the entity automatically gets an additional column for the sync date/time. This can be your workaround to use it as modification date.

  • Martin Dráb Profile Picture
    233,017 Most Valuable Professional on at
    RE: OData extract Entities modified since a date

    Note that entities typically consists of multiple tables, therefore it's not as simple as exposing a single field.

    BYOD synchronization utilizes change tracking; maybe you could consider something like that.

    I've also seen people building a computed column returning the highest ModifiedDateTime value from all tables used in the entity.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans