Ideas

Give us your best ideas!

Display extraData supplied to SecurityService.ActAsSystem in History tab

When a product or category gets updated by a scheduled job that uses SecurityService.ActAsSystem, the History tab for the updated entity only shows "_system" as the user who performed the update. If you have many different jobs that performs updates continuously, it can be hard to distinguish one update from another. It would therefore be nice if the extraData passed to ActAsSystem could be presented in the History tab as well.

For example:

using (_securityContextService.ActAsSystem("AcmeJob"))

{

_categoryService.Create(category);

}

... would show up in the History tab as:


Date

Person

Change

2024-07-10 09:00:00

_system (AcmeJob)

The property 'blah' was modified.


  • Niklas Uhlin
  • Jul 10 2024
  • Attach files