Skip to main content
Community site session details

Community site session details

Session Id : o89G7Vg3Fb0EmVHAyS0yUf
Power Automate - Using Flows
Unanswered

Audit history deletion using unbound action 'DeleteRecordChangeHistory'

Like (0) ShareShare
ReportReport
Posted on 17 Jun 2021 09:21:10 by 8

We are deleting records from CRM to reduce space. After deletion the log file size is increasing because of audit history records. We tried to delete audit history records using unbound action in power automate flow, it ran successfully but it does not delete any records(see below screenshot). We also tried using delete action of Microsoft Dataverse but it is giving error as -The 'Delete' method does not support entities of type 'audit'. 

 

Does anyone know why we cannot delete audit history records using flow?

 

PaulAm_0-1623921560200.png

 

  • PallaviP Profile Picture
    8 on 18 Jun 2021 at 06:14:05
    Re: Audit history deletion using unbound action 'DeleteRecordChangeHistory'

    Hello @rrovira ,

     

    Thank you for your response.

     

    Yeah, there should be some automatic way for deleting audit history records. As we can delete those records manually then we should also do it through flows and console app. 

     

    Please let us know whenever you find any way of doing this. 

     

    Thank you. 

  • rrovira Profile Picture
    Microsoft Employee on 17 Jun 2021 at 21:25:21
    Re: Audit history deletion using unbound action 'DeleteRecordChangeHistory'

    Hello, @PaulAm!

     

    I'm currently investigating if there's a way of deleting all the audit logs using Power Automate. So far, it seems to be an impossible tasks, or rather an inefficient one. I've seen some blogs that explain how to do this manually Deleting Audit Log in Dynamics 365 | Microsoft Dynamics 365 CRM Tips and Tricks (inogic.com) but perhaps there's a way of doing this automatically. I'll continue doing some research. 

     

    Cheers! 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow