Notifications
Announcements
No record found.
I am over storage in the logs category and so I need to clean up the audit history for marketing lists especially. How do we remove the HubSpot list syncing from the contact audit history?
Any ideas is appreciated, thank you.
Exactly same problem, but in our case we've stopped them from syncing, and now want to clean up all the erroneous records in audit log created by the HubSpot integration. Is there any way to clean up audit log to remove all the HubSpot created records?
Hi,
Thank you for your query.
As far as I know, you cannot delete the Audit log for select entities using any of the out-of-the-box features.
To clear the storage space, you have to follow these steps:
Recover database space by deleting audit logs - Power Platform | Microsoft Docs
I believe you can do this programmatically using DeleteRecordChangeHistoryRequest:
DeleteRecordChangeHistoryRequest Class (Microsoft.Crm.Sdk.Messages) | Microsoft Docs1
There is a sample code provided here:
(+) How we can bulk delete the Audit history for a particular entity in dynamic CRM 365? - Microsoft Dynamics CRM Forum Community Forum
In my opinion, to reduce Audit log size in the future, you can limit the auditing of the entities being manipulated by HubSpot.
By limit I mean, either turn off the auditing for such entities (if you do not need it) or select limited fields for Auditing so captured data is lesser.
There is a way to control the growth of the audit history. To actually trim it you can follow Wahaj Rashid's recommendations. You control the growth, create an Audit Policy in M365 Compliance Center. That will force D365 to send the history to the archive based upon the time period you selected:
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Siv Sagar 93 Super User 2025 Season 2
#ManoVerse 76
Martin Dráb 64 Most Valuable Professional