# Alert notification emails not persisted for custom alerts

**URL:** <https://forum.kx.com/t/alert-notification-emails-not-persisted-for-custom-alerts/12714>\
**Category:** Community Support\
**Tags:** add-ons\
**Created:** [November 4, 2022, 4:28am UTC](https://forum.kx.com/t/alert-notification-emails-not-persisted-for-custom-alerts/12714 "2022-11-04T04:28:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cj11](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@cj11](https://forum.kx.com/u/cj11)\
**Post date:** [November 4, 2022, 4:28am UTC](https://forum.kx.com/t/alert-notification-emails-not-persisted-for-custom-alerts/12714/1 "2022-11-04T04:28:00Z")

</div>

&nbsp;How can we persist the email-notification relationship? It gets lost as we import a package into Kx Control. Emails can be persisted and loaded back into DS\_EMAIL\_ADDRESSES but the information about a notification using which emails does get lost. Any help would be greatly appreciated.

&nbsp;

Example:

1. We have defined a custom alert in one of our Kx packages.

2. An email is assigned to the corresponding email notification using Email Recipients Manager dashboard.

&nbsp;

When the package is deployed again, the email assigned to a notification is lost. How can these be persisted?

&nbsp;

Is there a place where this information is kept within Kx which we can get access to?

DS\_EMAIL\_ADDRESSES stores the emails but not what email has been assigned to a notification.

&nbsp;

Appreciate any help.

&nbsp;

Thanks,

CJ

---

<div class="post-metadata">

**Author:** ![LeahS1](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@LeahS1](https://forum.kx.com/u/LeahS1)\
**Post date:** [November 5, 2022, 3:48pm UTC](https://forum.kx.com/t/alert-notification-emails-not-persisted-for-custom-alerts/12714/2 "2022-11-05T15:48:00Z")

</div>

Hello CJ,&nbsp;

Good question - Interested to hear some ideas from the community here!

_Thanks,&nbsp;_

_Leah_

&nbsp;

---

<div class="post-metadata">

**Author:** ![cj11](https://avatars.discourse-cdn.com/v4/letter/c/c4cdca/32.png) [@cj11](https://forum.kx.com/u/cj11)\
**Post date:** [November 10, 2022, 2:38am UTC](https://forum.kx.com/t/alert-notification-emails-not-persisted-for-custom-alerts/12714/3 "2022-11-10T02:38:00Z")

</div>

Thanks Leah,

An interim solution to this is to keep alert entities into a separate package as they are are not frequently updated. But, I need to make sure that the link is persisted during system or kx restarts as well.

---

<div class="post-metadata">

**Author:** ![davidcrossey1](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@davidcrossey1](https://forum.kx.com/u/davidcrossey1)\
**Post date:** [November 10, 2022, 4:26am UTC](https://forum.kx.com/t/alert-notification-emails-not-persisted-for-custom-alerts/12714/4 "2022-11-10T04:26:00Z")

</div>

Hi cj,

You should only need to re-import your separate package if you do an upgrade of Platform.

If you are simply restarting the system, that shouldn’t impact the current version of entities across the application.

To make sure, you can run a test by stopping and restarting the application and reviewing the state.

Hope this helps,

David
