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

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
Super User
Super User

@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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (2,813)