# Dynatrace Problem Webhook back to Dynatrace Event with ProblemDetailsJSONv2 not useable

**URL:** <https://community.dynatrace.com/t/dynatrace-problem-webhook-back-to-dynatrace-event-with-problemdetailsjsonv2-not-useable/42535>\
**Category:** Automations\
**Tags:** integrations, dynatrace-api\
**Created:** [November 9, 2023, 4:44am UTC](https://community.dynatrace.com/t/dynatrace-problem-webhook-back-to-dynatrace-event-with-problemdetailsjsonv2-not-useable/42535 "2023-11-09T04:44:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [November 9, 2023, 4:44am UTC](https://community.dynatrace.com/t/dynatrace-problem-webhook-back-to-dynatrace-event-with-problemdetailsjsonv2-not-useable/42535/1 "2023-11-09T04:44:57Z")

</div>

Hi Dynatracers!

We have a solution that executes actions based on specific conditions detected in Dynatrace using Dynatrace events.&nbsp; To facilitate this I’ve setup a Dynatrace problem integration that loops back into Dynatrace via a webhook problem notification.

Overall the structure works fine and is in general doing what I need, however I’m having some issues getting the JSON fields to travel through the the problem notification in a way that’s acceptable to the Dynatrace V2 events ingest API (/api/v2/events/ingest).

To be specific, in order for this to work I need to send the problem information through as an event ‘property’ - this works fine for the standard ‘string’ style fields available in the problem notification, but won’t work for any of the complex elements such as&nbsp;_ProblemDetailsJSONv2._&nbsp;&nbsp;Even attempting to send a test notification results in an error (400 - Bad Request) -&nbsp;{“error”:{“code”:400,“message”:“Could not map JSON at ‘properties.probDeets’ near line 19 column 18”}}

Worst case sending&nbsp;_ProblemDetailsText_ works correctly, but using a JSON version would be much nicer when working with it on the other side.

Any suggestions?&nbsp; I’m thinking this is almost certainly a constraint from the v2 event/ingest api (can’t take a JSON struct as a property) - looking for any workarounds/thoughts?

**Problem Notification Payload Definition:**

{  
“eventType”: “CUSTOM\_INFO”,  
“title”: “Run Action Request”,  
“properties”: {  
&nbsp; “reqId”: “00”,  
&nbsp; “target”: “{ImpactedEntity}”,  
&nbsp; “retryOnFail”: false,  
&nbsp; “dt.event.source”: “ACTION\_REQUEST”,  
&nbsp; “ImpactedEntityNames”: “{ImpactedEntityNames}”,  
&nbsp; “ImpactedEntity”: “{ImpactedEntity}”,  
&nbsp; “ProblemID”: “{ProblemID}”,  
&nbsp; “ProblemDetails”: “{ProblemDetailsText}”,  
&nbsp; “source”: “DynatraceNative”,  
&nbsp; “probDeetsTXT”: “{ProblemDetailsText}”,  
&nbsp; “probDeets”: {ProblemDetailsJSONv2}  
&nbsp; },  
“timeout”: 1  
}

All help greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [November 9, 2023, 5:55am UTC](https://community.dynatrace.com/t/dynatrace-problem-webhook-back-to-dynatrace-event-with-problemdetailsjsonv2-not-useable/42535/2 "2023-11-09T05:55:45Z")

</div>

Hello,

I noticed that you are missing the double quote as below

“probDeetsTXT”: “{ProblemDetailsText}”,  
&nbsp; “probDeets”: **"** {ProblemDetailsJSONv2} **"**

I don’t know if that should cause the problem or not, but this is the only field without “”

Thanks,

Islam

---

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [November 9, 2023, 6:08am UTC](https://community.dynatrace.com/t/dynatrace-problem-webhook-back-to-dynatrace-event-with-problemdetailsjsonv2-not-useable/42535/3 "2023-11-09T06:08:54Z")

</div>

Hi Islam,

Thanks for the suggestion, but unfortunately no luck (although it does give me a different error now 😎 ) - from memory the _ProblemDetailsJSONv2_&nbsp;field is one of those that’s meant to&nbsp;_not_ be quoted as it expands to a JSON struct - could be wrong there though.

Thanks anyway!

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 9, 2023, 9:34am UTC](https://community.dynatrace.com/t/dynatrace-problem-webhook-back-to-dynatrace-event-with-problemdetailsjsonv2-not-useable/42535/4 "2023-11-09T09:34:25Z")

</div>

I’m afraid that you will have to stay with ProblemDetailsText - otherwise it will probably be necessary to create some script, plugin, which will handle as an intermediary this communication.

---

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [November 13, 2023, 12:02am UTC](https://community.dynatrace.com/t/dynatrace-problem-webhook-back-to-dynatrace-event-with-problemdetailsjsonv2-not-useable/42535/5 "2023-11-13T00:02:50Z")

</div>

Thanks Radek - I suspect you’re right - was hoping there was some other magic available I didn’t see, but suspect not.&nbsp; Thanks anyway!
