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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Audit history for marketing lists and How to remove the HubSpot list syncing from the contact audit history?

(0) ShareShare
ReportReport
Posted on by 26

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 have the same question (0)
  • Rob T Profile Picture
    5 on at

    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?

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at

    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.

  • AriaConsulting Profile Picture
    2 on at

    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:

    pastedimage1627406776572v1.png

    pastedimage1627406826936v2.png

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans