Notifications
Announcements
No record found.
Hi All,
I am looking at the possibility of automating audit log deletion in my dynamics organization. I am particularly looking at scheduling audit log deletion such that I can set retention on audit logs such that it automatically deletes the logs once the retention period is met.
Please suggestions are welcomed.
Thank You
Asabix
Hi Asabix,
I am afraid that we cannot delete the audit log automatically for online CRM environments.
CRM audit log will have a partition every three months. You can check and delete them regularly through Settings > Auditing > Audit Log Management. You are able to manage through the deletion of audit logs in this spot.
Thank You Yiming.
I know OOTB we cannot automatically delete audit logs. I was hoping in this new world of power platform, if we could use MS flow to schedule a reoccuring job that will audit logs to be deleted based on set trigger and conditions.
Did you ever end up creating a MS flow to auto-delete logs? If so, would you be able to share the steps you took to make this work?
Thank you!
- Cindy
Hello Asabix,
Please take a look at Dynamics 365 workflow tool: https://github.com/demianrasko/Dynamics-365-Workflow-Tools/blob/master/docs/DeleteRecordAuditHistory.md
Also, see this thread: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/305110/how-to-delete-mscrm-audit-logs-through-c-custom-code/881063
This might be helpful in your scenario
Hi,
According to wave 1 2021. Audit logs will be automatically deleted per the retention period. Please refer to docs:
https://docs.microsoft.com/en-us/power-platform-release-plan/2021wave1/data-platform/dataverse-auditing-enhancements
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 170 Super User 2025 Season 2
#ManoVerse 70
Jimmy Passeti 50 Most Valuable Professional