
Hi,
If you want to download the audit history from Office 365, it looks like the following article outlines some details on this. It must be down programmatically using the Office 365 Management Activity API.
docs.microsoft.com/.../search-the-audit-log-in-security-and-compliance
If you want to programmatically download data from the audit log, we recommend that you use the Office 365 Management Activity API instead of using a PowerShell script. The Office 365 Management Activity API is a REST web service that you can use to develop operations, security, and compliance monitoring solutions for your organization. For more information, see Office 365 Management Activity API reference.
As this functionality isn't owned by the Dynamics team but rather part of the Office 365 suite, you might want to post this question over on their forum if you have additional questions: answers.microsoft.com/.../forum