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 / Can't see Audit History
Power Apps
Suggested Answer

Can't see Audit History

(0) ShareShare
ReportReport
Posted on by 2
Hi, 
 
I've been going round in circles about this and everything I can find online is out of date.
 
I have a Model-Driven Power App.
  • The table, columns, and environment all have correct auditing set up (I can see it all in the Audits table within the advanced settings).
  • All the security roles I've built that are attached to my forms have the necessary permissions to view the audit log. 
  • The audit history item shows in classic editor. 
The Audit History does not show in my app under the related tab in the modern view (editor or play mode). 
 
I need my users to be able to scrutinise the audit data for this table only within the model app but I cannot find a way to allow them to do this. Any help would be appreciated. 
 
I have seen something about adding a command for "msdyn_AuditDetail.js" but don't fully understand how it works, as per usual there's no accompanying documentation. 
Categories:
I have the same question (0)
  • Suggested answer
    Inogic Profile Picture
    1,283 Moderator on at
    Hi,
     
    Please follow below :

    1. Enable Auditing

    Audit data will not exist if these three steps are not completed:
      • Environment Level: In Power Platform Admin Center > Environments > [Your Env] > Settings > Auditing, turn on "Start Auditing".
      • Table Level: In your Solution, open the Table > Properties > Advanced Options > Check Audit changes to its data.
      • Field Level: Within the table, open columns and check Enable auditing

    2. Using msdyn_AuditDetail.js to View Audit Data

    Add a custom command button to the command bar (ribbon) of the table form that triggers the built-in audit dialog.

    Implementation:
     
      • Open the App Designer for the Model-Driven App.
      • Click Edit on the Command bar for the main form.
      • Create a new command button (e.g., named "View Audit History").
      • Set the Action to Run JavaScript.Library: Add the library: /WebResources/msdyn_AuditDetail.js.
      • Function Name: Use msdyn_AuditDetail.showAuditHistory.
      • Parameters: Add a parameter type of PrimaryControl (this passes the record ID and type).This command will prompt a dialog to appear with the change history for that specific record.

    Hope this helps.

    Thanks!
    Inogic
  • JC-12011058-0 Profile Picture
    2 on at
    Step 1 is definitely done, and my other tables have the audit history without any issues. 
     
    I've done Step 2 but it doesn't work. I've tried on both Main Grid (button doesn't show) and Main Form (shows but does nothing when clicked).
     
    The amount of data on the table means I really can't afford to re-build it. 

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
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 612

#3
Valantis Profile Picture

Valantis 604

Last 30 days Overall leaderboard