27 Apr 2024 06:44 AM
Hello everyone,
Does Dynatrace support integration for problem notifications with the x-www-form-urlencoded format?
So, I have a Service Desk. The expectation is that when an issue is detected in Dynatrace, it will automatically open a ticket in my Service Desk.
Here's an example integration I'm attempting in Postman:
However, when I try it in Dynatrace with the following payload format:
{
"problem": {
"title": "Name of the Problem 1"
}
}
An error occurs: {"response_status":{"status_code":4000,"messages":[{"status_code":4001,"field":"input_data","type":"failed","message":"Value not provided"}],"status":"failed"}}
Is it possible for Dynatrace to send a custom payload in that format?
Thank you in advance.
Solved! Go to Solution.
30 Apr 2024 03:51 PM
I'm not exactly sure what "Content-type" Dynatrace is sending, but that might be an issue on your receiving end, even with you construct the payload correctly with placeholders...
30 Apr 2024 03:58 PM
Should have tested it first. The custom payload has to be in JSON, so the x-www-form-urlencoded format doesn't seem to be supported.
A Product Idea exists for this case: https://community.dynatrace.com/t5/Product-ideas/Custom-integration-with-x-www-form-urlencoded-paylo...
04 May 2024 06:34 PM
well apparently, what we needed to do was add a Content-Type header with the value application/x-www-form-urlencoded, and the integration started working seamlessly.