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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Retrieve all used enti...
Power Apps
Suggested Answer

Retrieve all used entities/attributes

(2) ShareShare
ReportReport
Posted on by 12
We have Dynamics 365 and we also develop and run PowerApps apps and PowerAutomate flows. We want to analyze dataverse usage, get to know the list of entities and attributes that are used. We want to automate this process: retrieve analytics via API calls from PowerShell, store the results in a db and analyze history.
 
Here is a high level code, courtesy of Claude.ai:
 
# Import required modules
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber

# Connect to your Power Platform environment
Add-PowerAppsAccount

# Set your environment ID
$environmentId = "your-environment-id"

# Get Usage Analytics data
$usageAnalytics = Get-PowerAppAnalyticsEntityUsageMetrics -EnvironmentId $environmentId (period parameters here..)

# Process Usage Analytics data
$usedEntities = @()
$usedAttributes = @()

foreach ($entity in $usageAnalytics.Entities) {
$usedEntities += $entity.EntityName
foreach ($attribute in $entity.Attributes) {
$usedAttributes += "$($entity.EntityName).$($attribute.AttributeName)"
}
}
 
Has anybody worked some sort of solution like this? 
Looking for any feedback on this to support ideation over here.
 
Thank you very much!
 
 
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,969 Moderator on at
    Hi,
     
    What exactly are you looking for?
     
    Are you trying to track when people change/modify the Tables? The Data? when they do any action?
     
    No I wouldn't do what you are doing, but I don't understand the holistic thing you want to do.
     
    Are you trying to understand how they are used by Apps and Flows and When etc?
     
     
  • Shashank Bhide Profile Picture
    946 Moderator on at
    not sure what's the objective here, but have you tried to use the OOB admin center reports to see if those give you the details. 
  • Suggested answer
    bscarlavai33 Profile Picture
    752 Super User 2026 Season 1 on at
    I believe Claude.ai just made up the "Get-PowerAppAnalyticsEntityUsageMetrics" function. It would be nice if it existed though. Someone built an XrmToolbox tool to do this, called AttributeUsageInspector. The code is open source so you could get inspiration from there.

    Tool: https://www.xrmtoolbox.com/plugins/MscrmTools.AttributeUsageInspector/

    Github: https://github.com/MscrmTools/MscrmTools.AttributeUsageInspector
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard