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

Notifications

Announcements

Community site session details

Community site session details

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

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,351 Super User 2025 Season 2 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
    942 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
    738 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard