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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Odata Get Etag in response header

(0) ShareShare
ReportReport
Posted on by 50

I  am sending an get request using Dynamics 365 Odata to any odata endpoint  i.e (ReleasedProductsV2)

I am getting back a list of all products ( I do not have any filter )

Each product have it is own @odata.etag , however I was looking to get etag for the whole list. 

My use case is to check any endpoint and get the etag for the whole list, and save it, then use the stored etag to in the request header (If-match) to check if the list have any changes. 

What I am missing here ? is there is any other way to check if a list of( products, orders ..ext ) have been recently changed ? 

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Odata Get Etag in response header

    Could you share a bit more details about your business requirement? Do you actually need to get the changed records? Or do you just need to know if any of the records has changed?

    You can also consider using Data management projects and change tracking instead of OData, if you are interested in the changed records.

  • Ali J Profile Picture
    50 on at
    RE: Odata Get Etag in response header

    I am not familiar with "Data management projects" I will try to look around.

    As for your first question, both solution would be helpful, so either to get changed recorders  since last check or ( response code 302 if the entire list was not changed )

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Odata Get Etag in response header

    One option would be to develop a timestamp field in the entities that you need, and use it as a filter when you query the OData endpoint. In D365F&O you can enable such field on tables (with "CreatedDateTime" and "ModifiedDateTime" properties), but for the entities that include many tables in the data sources it requires a bit more than that.

  • Ali J Profile Picture
    50 on at
    RE: Odata Get Etag in response header

    Thanks for the suggestion, I think I will go with this solution.

    However if I may got it right, the short answer to my question is NO, I cannot get etag for the whole response ?

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Odata Get Etag in response header

    That is correct. The system doesn't provide etag for the whole resultset of your OData query, instead it's provided per each entry in the resultset. Also, querying everything again just to see if anything was changed would be quite wasteful.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,177

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 860 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans