Base solution for your next web application
Open Closed

Question about Notification Query #1790


User avatar
0
JeffMH created

I see where we can publish a notification by Entity (using EntityIdentifier), but I don't see a built in way to query by that. Like the list of Notifications built into the app, I need to create a list to see the all notifications for a particular Entity.

Is there a way to do this that I am just missing? It's probably wishful thinking but I thought I would ask.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I think the only way is using a repository of IRepository<TenantNotificationInfo, Guid> and filter records by EntityTypeName field. IS that works for you ?

  • User Avatar
    0
    JeffMH created

    Yes, I already started to do something like that. I think I will add a feature request on GitHub. It would be nice if this was part of the IUserNotificationManager. It's just cleaner if I don't have to implement my own NotificationManager since that is part of the ABP framework and not part of the template.

    We could either create an overload for GetUserNotificationsAsync on IUserNotificatioManager or create an alternate method to pass the additional entity information. Maybe GetUserEntityNotificationsAsync.

    Once I am done with what I do, I will post the request.

    Thanks!