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 Pages / Custom Audit View embe...
Power Pages
Unanswered

Custom Audit View embedded in a portal page

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

is it possible to create a custom audit view in any way? What I mean by that is  to create an audit view for all accounts featuring the columns:

 

Account Name | Old Value | New Value 

 

I got an requirement to add such a view in a PowerApps Portal page, however I am only able to insert a record specific audit history or the whole audit summary as an iFrame.

I want a custom audit view showing the changes of the account entity. 

 

Any suggestions how to achieve this requirement?

Thanks in advance!

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    A few points here:

    • Do you want to show all changes? or only changes made via Portals?
    • Do you want to show changes for every column or just for a few?
    • Have you thought about security? Can users see changes that any other user did?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey!

    I only want to show specific fields of the account entity referring to changes made on portal/crm (update information). Specific users will can view these changes yes. But I am struggling to create such an "custom audit view".

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    I personally wouldn't try to use the OOB audit view in this case for the following reasons:

    • Audit table usually grows quite a lot and is a very heavy table, not ideal to ask your Portal to load that
    • There would be a big enough risk of either you showing data that is not relevant, or showing the wrong fields
    • Depending on how you enable the view for the Audit history, you could endup exposing Audit data for other entities by accident

     

    What I would do here, is:

    • Create a new Entity for Custom Account Audit, you have are going to have similar functionality on other entities, you can create a generic Custom Audit entity
    • Add a Plug-in with Pre-Image/Post-Image to the Account entity and created a new custom audit record whenever your fields are changed (pro-top, think about how to have those fields configured somewhere in the system, so you don't need to change your code everytime you want to audit another field)
    • The new entity is related to the Account, so you can show as a subgrid in your form/Portal pages
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @OliverRodrigues ! Did you create such a plug-in or do you know a reference we can build on?

    I am just asking because its time critical and any time we can free up for the developers would be super helpful.

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    what I meant is that that would be my approach

    please take a look at the official documentation for Plugin development: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/write-plug-in

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 50

#2
Valantis Profile Picture

Valantis 26

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard