Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Delete Audit History for a particular Contact record

Posted on by 117

Hi

In order to fully anonymise a Contact record who has asked to be erased from the system, we want to remove that contact's audit history using Power Automate.

Is this possible?

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,525 Super User 2024 Season 1 on at
    RE: Delete Audit History for a particular Contact record

    Happy help you.

  • Suggested answer
    simonsnell Profile Picture
    simonsnell 117 on at
    RE: Delete Audit History for a particular Contact record

    Thank you so much Amit.  That's very helpful, and it works perfectly.

  • Verified answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,525 Super User 2024 Season 1 on at
    RE: Delete Audit History for a particular Contact record

    Hello SSnell 

    Yes you can perform this operation using power automate flow.

    please refer below solution which will help you to implement your requirement.

    1. Use below manual connector which will take the GUID of the selected record. 

    pastedimage1654699830204v1.png

    2. As we can not delete the Audit history record using the general Dataverse connector, we will need to use unbound action connector and where we will provide the Record ID of an record for which we want to delete the Audit history.

    In above example I have used this flow for the Contact record. in below image you can see i have 2 contacts and both have audit history with it.

    pastedimage1654700071344v2.png

    pastedimage1654700109503v3.png

    When the flow is created it will be visible in Dynamics 365 ribbon.

    pastedimage1654700216788v4.png

    Select the record and click on the newly created flow. And then click on the Run Flow.

    pastedimage1654700302031v5.png

    it will show success message. 

    pastedimage1654700324594v6.png

    When you will check the Audit history it will be deleted for that record.

    pastedimage1654700375607v7.png

    pastedimage1654700395306v8.png

    Thank you,

    Amit Katariya

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Delete Audit History for a particular Contact record

    Hi,

    Yes, you can do that using power automate.

    You need to use below action

    docs.microsoft.com/.../deleterecordchangehistory

    You can use perform bound/unbound action in power automate

    www.google.com/url

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans