We need to display the entity change log in our platform,that is, who has changed what and when, I know that this information is stored, but what's the best way to retrieve it?
Thanks
8 Answer(s)
-
0
When you enable entity history you can see all changes in auditlog page.
Go to https://localhost:44302/AppAreaName/AuditLogs and open change logs page. You can also see the details of the changes.
-
0
The think is that I want to get the data to incorporate it to our own pages
-
0
Hi @ignasiclos
You can use AuditLogAppService's GetEntityChanges method as an API and retrieve the data you want. Follow https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Token-Based-Authentication to authenticate your external app and get data from AspNet Zero.
You can also directly access to database but using the API is better I think.
-
0
It looks like I cannot get the changes of a single entity, right? I cannot see any method to get the history by entity Id and tyoe
What I whant to achieve is to show in a entity detail page, the changes of it
Thanks
-
0
Sorry, I missed it, GetEntityTypeChangeInput, testing now.
-
0
Getting operation logs but no change log, Perhaps I should activate it somewhere?
-
0
Hi,
Yes, you need to activate it, please follow https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Entity-History
-
0
Great, thanks!