Retrieve and delete the history of audited data changes (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) (2024)

  • Article

After auditing is enabled and data changes are made to those entities and attributes being audited, you can proceed to obtain the data change history. Optionally, you can delete the audit records after you review the change history. Follow the sample code link at the end of this topic for more information.

Retrieve the change history

There are several messages requests that can be used to retrieve the audit change history. These requests are differentiated by the nature of what they retrieve.

Refer to the sample link at the end of this topic for sample code that demonstrates some of these change history message requests.

Delete the change history for a record

Use the DeleteRecordChangeHistoryRequest message to delete all the audit change history records for a particular record. This lets you delete the audit change history for a record instead of deleting all the audit records for a date range, which is covered in the next section. To delete the audit change history for a record, you must have a security role with the prvDeleteRecordChangeHistory privilege or be a System Administrator.

Delete the change history for a date range

You can delete audit records for a date range using the DeleteAuditDataRequest request. Audit data records are deleted sequentially from the oldest to the newest. The functionality of this request is slightly different based on the edition of SQL Server being used by your Dynamics 365 Customer Engagement (on-premises) server. Dynamics 365 for Customer Engagement uses an enterprise edition of SQL Server.

If your Dynamics 365 Customer Engagement (on-premises) server uses SQL Server standard edition, which does not support the database partitioning feature, the DeleteAuditDataRequest request deletes all audit records created up to the end date specified in the EndDate property.

If your Dynamics 365 Customer Engagement (on-premises) server uses an Enterprise edition of SQL Server that does support partitioning, the DeleteAuditDataRequest request will delete all audit data in those partitions where the end date is before the date specified in the EndDate property. Any empty partitions are also deleted. However, neither the current (active) partition nor the audit records in that active partition can be deleted by using this request or any other request.

New partitions are automatically created by the Dynamics 365 Customer Engagement (on-premises) platform on a quarterly basis each year. This functionality is non-configurable and cannot be changed. You can obtain the list of partitions using the RetrieveAuditPartitionListRequest request. If the end date of any partition is later than the current date, you cannot delete that partition or any audit records in it.

See also

Data Management in Dynamics 365 Customer Engagement (on-premises)
Audit entity data changes
Audit user access
Sample: Audit Entity Data Changes

Auditing Entity Data Changes in Dynamics 365 Customer Engagement (on-premises)

Retrieve and delete the history of audited data changes (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) (2024)
Top Articles
What is a Customer Identification Program (CIP)?
What Is the Target Credit Card Credit Limit?
13 Easy Ways to Get Level 99 in Every Skill on RuneScape (F2P)
Insidious 5 Showtimes Near Cinemark Tinseltown 290 And Xd
Rondale Moore Or Gabe Davis
Videos De Mexicanas Calientes
CSC error CS0006: Metadata file 'SonarAnalyzer.dll' could not be found
Valentina Gonzalez Leaked Videos And Images - EroThots
World History Kazwire
Nier Automata Chapter Select Unlock
Chris Hipkins Fue Juramentado Como El Nuevo Primer Ministro De...
Buff Cookie Only Fans
Crossword Nexus Solver
Equibase | International Results
All Obituaries | Buie's Funeral Home | Raeford NC funeral home and cremation
Richland Ecampus
Craigslist Pinellas County Rentals
Rqi.1Stop
Marion City Wide Garage Sale 2023
What Time Does Walmart Auto Center Open
Globle Answer March 1 2023
Bellin Patient Portal
2487872771
Mandy Rose - WWE News, Rumors, & Updates
At 25 Years, Understanding The Longevity Of Craigslist
As families searched, a Texas medical school cut up their loved ones
Angel Haynes Dropbox
Remnants of Filth: Yuwu (Novel) Vol. 4
Riverstock Apartments Photos
Roseann Marie Messina · 15800 Detroit Ave, Suite D, Lakewood, OH 44107-3748 · Lay Midwife
Craigs List Jax Fl
Learn4Good Job Posting
Verizon TV and Internet Packages
MethStreams Live | BoxingStreams
Rvtrader Com Florida
Minecraft Jar Google Drive
Texters Wish You Were Here
Http://N14.Ultipro.com
Hotels Near New Life Plastic Surgery
Kgirls Seattle
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
Mars Petcare 2037 American Italian Way Columbia Sc
Executive Lounge - Alle Informationen zu der Lounge | reisetopia Basics
Craigslist Com St Cloud Mn
22 Golden Rules for Fitness Beginners – Barnes Corner Fitness
The Nikki Catsouras death - HERE the incredible photos | Horror Galore
Rite Aid | Employee Benefits | Login / Register | Benefits Account Manager
Diario Las Americas Rentas Hialeah
antelope valley for sale "lancaster ca" - craigslist
About us | DELTA Fiber
Wieting Funeral Home '' Obituaries
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 6066

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.