# Reporting problem - payload format

**URL:** <https://community.dynatrace.com/t/reporting-problem-payload-format/20396>\
**Category:** Alerting\
**Tags:** problem-notification\
**Created:** [September 28, 2020, 10:32am UTC](https://community.dynatrace.com/t/reporting-problem-payload-format/20396 "2020-09-28T10:32:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose-antonio\_ra](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jose-antonio_ra/32/38171_2.png) [@jose-antonio\_ra](https://community.dynatrace.com/u/jose-antonio_ra)\
**Post date:** [September 28, 2020, 10:32am UTC](https://community.dynatrace.com/t/reporting-problem-payload-format/20396/1 "2020-09-28T10:32:07Z")

</div>

Hi all.

I’m doing a custom integration for problem reporting, but I have a problem. The webhook only supports payload in xml format.

Is there any way to fix it? Has anyone worked on something like this?

Thank you very much.

best regards!

Jose A

---

<div class="post-metadata">

**Author:** ![dirk\_wall](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dirk_wall/32/4849_2.png) [@dirk\_wall](https://community.dynatrace.com/u/dirk_wall)\
**Post date:** [September 28, 2020, 1:56pm UTC](https://community.dynatrace.com/t/reporting-problem-payload-format/20396/2 "2020-09-28T13:56:31Z")

</div>

Hi Jose,

Please take a loot at the documentation ([Send Dynatrace notifications via webhooks — Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/integrations/third-party-integrations/problem-notification-systems/webhook-integration/)), especially the section about ‘Additional HTTP headers’. You can specify ‘application/xml’ as a header and then you can specify the payload as XML. Please be aware that you can’t escape characters from the placeholders.

Hope this helps,  
Cheers,  
Dirk

---

<div class="post-metadata">

**Author:** ![jose-antonio\_ra](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jose-antonio_ra/32/38171_2.png) [@jose-antonio\_ra](https://community.dynatrace.com/u/jose-antonio_ra)\
**Post date:** [September 28, 2020, 2:06pm UTC](https://community.dynatrace.com/t/reporting-problem-payload-format/20396/3 "2020-09-28T14:06:37Z")

</div>

Thanks Dirk!!

just one more thing, what do you mean by _"escape_ _characters from the placeholders_" ??

Do you have an example to see if it affects my work?

Cheers

Jose A

---

<div class="post-metadata">

**Author:** ![dirk\_wall](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dirk_wall/32/4849_2.png) [@dirk\_wall](https://community.dynatrace.com/u/dirk_wall)\
**Post date:** [September 28, 2020, 2:12pm UTC](https://community.dynatrace.com/t/reporting-problem-payload-format/20396/4 "2020-09-28T14:12:24Z")

</div>

The notification were built with JSON in mind. It could be that certain placeholders (e.g. the **{ProblemDetailsHTML}** contains HTML tags) contain one of the characters that should be escaped, e.g. [https://www.freeformatter.com/xml-escape.html](https://www.freeformatter.com/xml-escape.html)

Cheers,  
Dirk

---

<div class="post-metadata">

**Author:** ![MevlutS](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@MevlutS](https://community.dynatrace.com/u/MevlutS)\
**Post date:** [April 10, 2022, 3:59pm UTC](https://community.dynatrace.com/t/reporting-problem-payload-format/20396/5 "2022-04-10T15:59:58Z")

</div>

Hello [@dirk\_wall](https://community.dynatrace.com/user/11848),

I have an issue for this topic. Could you help us please with this situation?

When we post the problem notification as XML to 3rd party system. The {ProblemDetailText} value include data like \<masked\>. Because of this the structure of XML element corrupts. So, can we replace it in custom payload like below method ? We can do that with AppDynamics, i don’t know if we can do that in Dynatrace or not ?

#set( tmp\_ProblemDetailText= !{ProblemDetailsText.replace(“\<masked\>”,“(masked)”)} )

---

<div class="post-metadata">

**Author:** ![dirk\_wall](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dirk_wall/32/4849_2.png) [@dirk\_wall](https://community.dynatrace.com/u/dirk_wall)\
**Post date:** [April 12, 2022, 6:55am UTC](https://community.dynatrace.com/t/reporting-problem-payload-format/20396/6 "2022-04-12T06:55:46Z")

</div>

Hi&nbsp;[@MevlutS](https://community.dynatrace.com/user/34395),

We don’t support this as of today - the problem notifications were primarily designed and built for JSON payloads. It’s great that XML payloads are also possible. However, nothing has been optimized in this direction, as more and more third-party systems are offering REST APIs that work with JSON payloads.

However, we’re currently in the process of implementing a new notification system that will offer much more flexibility in designing the payload and will also be able to meet the requirements mentioned before. I can’t share an ETA yet.

Cheers,

Dirk
