Skip to main content

Notifications

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.

  • AriaConsulting Profile Picture
    2 on at
    RE: Audit history for marketing lists and How to remove the HubSpot list syncing from the contact audit history?

    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

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Audit history for marketing lists and How to remove the HubSpot list syncing from the contact audit history?

    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.

  • Rob T Profile Picture
    5 on at
    RE: Audit history for marketing lists and How to remove the HubSpot list syncing from the contact audit history?

    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?

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 124 Super User 2025 Season 1

Product updates

Dynamics 365 release plans