cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VD
Helper III
Helper III

Audits logs

Hi,

 

I have enable the audits on custom tables in Dataverse.

 

To check summary, every time I have to go in Admin center.

 

I decided to build a screen in canvas app and I have fetch the details form audit table, but table not giving all the fields like, Changed By, Record Information.

 

Please suggest me how I can show all the fields in canvas application that available in Audit Summary View.

1 REPLY 1
Prakash4691
Solution Specialist
Solution Specialist

@VD ,

To get user/teams details of who made the changes you can try below formula. It is a polymorphic lookup you have to write formulas in such a way to get the data. Below snippet is an example of getting user or teams name for label inside gallery.

If(IsType(ThisItem.'Changed By',Users),
AsType(ThisItem.'Changed By', Users).'Full Name',
AsType(ThisItem.'Changed By', Teams).'Team Name')

 

We can't get granular details like we get it inside powerapps audit summary view. To summarize, it will be very hard to get record information, because you might have enabled audit for entire organization or for few entities. In such case, you need to write formula like above for all the entities where audit has been enabled.

 

Since "changed by" involves only two entities user/team so it is easy to write formula and also no changes required. If it is for multiple entities your formula will get complex and in future if you create any new entity with auditing enabled, then changes required everytime in the formula. I would not recommend that way.

 

I hope I have provided necessary information.

If it answers your question. Kindly give kudo and accept it as solution.


Regards,
Prakash

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,522)