web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

View Audit Storage by Entity in Dynamics 365 Using GetAuditStorageDetails Action

Inogic Profile Picture Inogic 1,118 Super User 2025 Season 2

In Microsoft Dynamics 365, auditing helps you keep track of what’s happening inside your CRM. Every time a record is created, updated, or deleted, the system records this activity as an audit log.

While this is great for transparency and troubleshooting, there’s a challenge – the platform doesn’t directly show how much storage each entity or partition is using for these audit logs.

For administrators and developers, this lack of visibility can make it difficult to manage storage efficiently. Over time, audit logs can grow large, and organizations might suddenly find themselves hitting storage limits.

To address this, Microsoft introduced the GetAuditStorageDetails Action in Dataverse.
This feature provides a detailed breakdown of your audit log storage usage by offering insights such as:

  • Total storage used by audit logs
  • Distribution of audit data across entities or partitions

In short, this action helps administrators and system maintainers analyze and optimize audit storage usage, making planning and monitoring far easier.

In this blog, we’ll demonstrate how to call this action using a C# console application, showing both the request structure and expected response.

What Is the GetAuditStorageDetails Action?

The GetAuditStorageDetails Action is a Dataverse API function that provides insights into how audit data is stored.

It helps you identify which entities or partitions consume the most storage, enabling administrators to better control audit data retention and cleanup.
Step-by-Step: How to Use the GetAuditStorageDetails Action

Step 1: Create a Console Application

Start by creating a simple C# console application in Visual Studio.
Make sure you reference the Microsoft.PowerPlatform.Dataverse.Client package to use the ServiceClient class...Read More>>

Comments