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.
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.
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:
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:
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.
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?
Daivat Vartak (v-9d...
181
Super User 2025 Season 1
Siv Sagar
149
Super User 2025 Season 1
Vahid Ghafarpour
124
Super User 2025 Season 1