# How to use notifications for a custom model?

**URL:** https://meta.discourse.org/t/how-to-use-notifications-for-a-custom-model/209168
**Category:** Development
**Created:** [November 15, 2021, 2:33pm UTC](https://meta.discourse.org/t/how-to-use-notifications-for-a-custom-model/209168 "2021-11-15T14:33:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 15, 2021, 2:33pm UTC](https://meta.discourse.org/t/how-to-use-notifications-for-a-custom-model/209168/1 "2021-11-15T14:33:59Z")

</div>

I have a custom `server` model in a plugin. When a user interacts with that model to create or upgrade a `server` I want to send a notification when it’s done. The notification model has:

```plaintext
  belongs_to :user
  belongs_to :topic

```

I’ve tried creating a notification with some data, but even following examples in existing notifications can’t make sense of what can be in the `data` field (not to mention anything useful).

Can someone point me to a plugin with an example custom notification?

Also, there are comments suggesting that the custom Notification identifier is troublesome and that those who want custom notifications should submit a PR asking for one, is that still true?

---

<div class="post-metadata">

### Author: ![SubStrider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/substrider/32/512604_2.png) [@SubStrider](https://meta.discourse.org/u/SubStrider)
#### Post date: [July 18, 2025, 4:42am UTC](https://meta.discourse.org/t/how-to-use-notifications-for-a-custom-model/209168/3 "2025-07-18T04:42:33Z")

</div>

Were you able to figure out how to trigger custom notifications?
