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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / get version history of...
Power Apps
Unanswered

get version history of entities through api?

(0) ShareShare
ReportReport
Posted on by 53

Is it possible to lookup the histories of entities or spesific records through the api?
it would be amazing if i could send a request like this. And it would return a snapshot of what the data looked like.

GET: https://myORG.api.crm4.dynamics.com/api/data/v9.1/cr0ad_someEntity?$history='10/7/2019'


And it would return what the data looked like at that time. Or is there maybe a feature that lets me lookup the change history of a specific record? 

Thanks for your time. Its greatly appreciated

I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    @Ballzer0 

     

    Although I don't have experience with APIs, if you want to get the history records, the only way I have found to do this is by turning on the Audit setting for the entity. 

    Then maybe you can try to retrieve the Audit Details by RetrieveAuditDetails Function using Web API. Reference: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/retrieveauditdetails?view=dynamics-ce-odata-9 

    Hope this helps.

    Sik

  • Kestenholz Profile Picture
    38 on at

    .

  • Verified answer
    Kestenholz Profile Picture
    38 on at

    The Audit log is possible to retrieve from CDS e.g. in Power BI. However it will end up in the hundreds of MBs so really not an option. If you are looking for a way to capture historic data to track changes over time, I would suggest to setup a simple "scheduled flow" that copies values from your entity to a shadow entity. Make sure you also drop the UID value of the entity you copy from. This way, you can both see the historic values in a subgrid on the original entity form, or pull it into Power BI for Desktop in a snap.

  • Ballzer0 Profile Picture
    53 on at

    when you say drop the UID? i assume you mean i should copy the uid into another field called originalid or something like that, that way i can trace back what shadow entities trace back to the original one?

  • Kestenholz Profile Picture
    38 on at

    Yes exactly! This way you can easily join the data later on in Power BI.

  • Ballzer0 Profile Picture
    53 on at

    thanks for the suggestion. im a bit afraid of how fast my dataset is gonna grow, but i think this is the best solution.

  • aKnowledgeWorke Profile Picture
    11 on at

    How do you retrieve audit from CDS?  I'm unable to see it, and I understood that it was not exposed to PBI or the Data Export Service (Dynamics)?  I had to use an Azure Data Factory pipeline to see it and export it.  Am I missing something?

    cheers,

    Steve.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard