Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Power Automate flow to delete attached documents & audit history

Posted on by 134

Hi,

I need to create a power automate flow in order to anonymize data of leads and contacts. I am able to change fields but I am having trouble creating two additional steps:

1. I need to delete all documents attached to the lead / contact --> we are using sharepoint integration

2. I need to delete the audit history of the lead / contact as customer data might still be visible there --> I am able to get the table where the audits are stored but I am not able to delete them via transaction id and the delete a row step

Any ideas on how to implement the 2 steps? 

Regards

Christian

  • Suggested answer
    Christian K Profile Picture
    Christian K 134 on at
    RE: Power Automate flow to delete attached documents & audit history

    I was able to solve both points.

    1: with Sharepoint and delete file command. It's a bit complicated to get the files

    2: only possible after I uploaded a plug in msdyncrmworkflowtools.class.deleterecordaudithirstory. I just created a basic workflow with a condition to run it as needed.

    Still surprised that Microsoft "ignores" DSGVO guidelines and does not offer out of the box easy solutions for this

  • Christian K Profile Picture
    Christian K 134 on at
    RE: Power Automate flow to delete attached documents & audit history

    Hi,

    thanks for the swift response. I am looking more for a step by step. I know I can use these actions but I cannot get it to work.

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Power Automate flow to delete attached documents & audit history

    Hi Christian K,

    You may use one of these 

    pastedimage1665761025874v1.png

    The second is tricky. I will try to share hints for it.

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans