# Store custom problem notifications data in to SQL server

**URL:** <https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [November 23, 2022, 8:51am UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429 "2022-11-23T08:51:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koteswar](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@Koteswar](https://community.dynatrace.com/u/Koteswar)\
**Post date:** [November 23, 2022, 8:51am UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429/1 "2022-11-23T08:51:15Z")

</div>

Hi Team,

Greetings of the day.

I am new to dynatrace.My question is how to store custom problem notifications data in to  
sql server database using Dynatrace API.I am unfamiliar with a best way to achieve this.  
Please share any recommendations for how to achieve this.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 23, 2022, 12:57pm UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429/2 "2022-11-23T12:57:42Z")

</div>

Hi [@Koteswar](https://community.dynatrace.com/user/57254)

You should use the Probelm APIv2. You need an API token with probelm.read scope.

Collect the closed custom severity problem ids for the last day (-1d):

curl -X GET https:// **your\_environment** /api/v2/problems?from=-1d&problemSelector=severityLevel%28%22CUSTOM\_ALERT%22%29%2Cstatus%28%22closed%22%29 -H “accept: application/json; charset=utf-8” -H "Authorization: Api-Token **YOUR TOKEN**

Use the collected problem ids (bold in the middle is an individual prolem id), then you will receive the details of this individual problem.

curl -X GET https:// **your\_environment** /api/v2/problems/ **-7695485534087673753\_1669185960000V2** -H “accept: application/json; charset=utf-8” -H “Authorization: Api-Token **YOUR TOKEN** ”

I have already attached a sample response from an individual custom problem.

I hope it helps to start build your process.

Best regards,

Mizső  
[response\_1669207438538.zip](https://community.dynatrace.com/uploads/short-url/yaBWoBDlLZ8fWt5BKFpADKiT6ys.zip) (833 Bytes)

---

<div class="post-metadata">

**Author:** ![Koteswar](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@Koteswar](https://community.dynatrace.com/u/Koteswar)\
**Post date:** [November 24, 2022, 2:11am UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429/3 "2022-11-24T02:11:32Z")

</div>

[@Mizső](https://community.dynatrace.com/user/47783)Thank you for quick response. Yes the above information is helpful but my specific requirement is automatically to save problem notification(log) data to sql server for further investigation. Please advise on this.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 24, 2022, 6:06am UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429/4 "2022-11-24T06:06:20Z")

</div>

Hi [@Koteswar](https://community.dynatrace.com/user/57254),

I think there is not other way to pull problem data from DT. You should build your auto process for this procedure.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Koteswar](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@Koteswar](https://community.dynatrace.com/u/Koteswar)\
**Post date:** [November 24, 2022, 9:11am UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429/5 "2022-11-24T09:11:10Z")

</div>

Hi [@Mizső](https://community.dynatrace.com/user/47783) thank you for sharing the information.

Please advise on my second question, I have created alerting profile and linked with email alert notification. Test email is triggering and receiving email alert successfully but when the problem has notified in Dynatrace, email alert is not triggering.

Many Thanks.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [November 24, 2022, 9:48am UTC](https://community.dynatrace.com/t/store-custom-problem-notifications-data-in-to-sql-server/37429/6 "2022-11-24T09:48:23Z")

</div>

Hi [@Koteswar](https://community.dynatrace.com/user/57254)

For automate this procedure you can build [ActiveGate extension](https://www.dynatrace.com/support/help/shortlink/activegate-extensions-intro#what-is-the-activegate-extensions-architecture)

HTH

Yos
