<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Email Alert using HTTP Template in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735884#M9604</link>
    <description>&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;Thanks for quick response.&lt;/P&gt;&lt;P&gt;I have checked on postman, there also it is showing same bad request message.&lt;/P&gt;&lt;P&gt;I have added below headers, still it is showing same bad request message.&lt;/P&gt;&lt;P&gt;Accept: application/json&lt;/P&gt;&lt;P&gt;Content-Type: application/json&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 10:23:18 GMT</pubDate>
    <dc:creator>Sagar_Naringrek</dc:creator>
    <dc:date>2020-08-24T10:23:18Z</dc:date>
    <item>
      <title>Email Alert using HTTP Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735882#M9602</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;We are using infobip API service for email integration&lt;/P&gt;

&lt;P&gt;We have created a new HTTP Request Template.&lt;/P&gt;
&lt;P&gt;In the Request URL section, we have selected the post method and provided a URL. In Authentication, we have added a username and password for authentication.&amp;nbsp; The settings here is working fine.&lt;/P&gt;

&lt;P&gt;In the Payload section, we have selected application/JSON&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"from":"abc@xyz.com",&lt;BR /&gt;"to":"test@xyz.com}",&lt;BR /&gt;"subject":"AppDynamics",&lt;BR /&gt;"text":"Appdynamics test Event"&lt;BR /&gt;}&lt;/P&gt;

&lt;P&gt;Saved configuration and run tests.&lt;/P&gt;

&lt;P&gt;The test run result is success. However, in response payload it is throwing below message&lt;/P&gt;
&lt;P&gt;{"requestError":{"serviceException":{"messageId":"BAD_REQUEST","text":"Bad request"}}}&lt;/P&gt;

&lt;P&gt;Could you please help to resolve this?&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 07:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735882#M9602</guid>
      <dc:creator>Sagar_Naringrek</dc:creator>
      <dc:date>2020-08-24T07:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert using HTTP Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735883#M9603</link>
      <description>&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;I am assuming you have validated the same using Postman/SOAP UI? and it's working?&lt;/P&gt;&lt;P&gt;Have you added the 2 headers below to the setup in AppDynamics to the request&lt;/P&gt;&lt;P&gt;Accept: application/json&lt;/P&gt;&lt;P&gt;Content-Type: application/json&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 09:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735883#M9603</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2020-08-24T09:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert using HTTP Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735884#M9604</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;Thanks for quick response.&lt;/P&gt;&lt;P&gt;I have checked on postman, there also it is showing same bad request message.&lt;/P&gt;&lt;P&gt;I have added below headers, still it is showing same bad request message.&lt;/P&gt;&lt;P&gt;Accept: application/json&lt;/P&gt;&lt;P&gt;Content-Type: application/json&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735884#M9604</guid>
      <dc:creator>Sagar_Naringrek</dc:creator>
      <dc:date>2020-08-24T10:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert using HTTP Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735885#M9605</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ok first step is to understand how the InfoBIP API needs your request to be formatted.&lt;/P&gt;&lt;P&gt;I cant get the exact details from the docs&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also I am not sure if the payload has an issue but you have the "to" section end with a }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"from":"abc@xyz.com",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"to":"test@xyz.com}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"subject":"AppDynamics",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"text":"Appdynamics test Event"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Assuming the correct payload should be as below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"from":"abc@xyz.com",&lt;BR /&gt;"to":"test@xyz.com",&lt;BR /&gt;"subject":"AppDynamics",&lt;BR /&gt;"text":"Appdynamics test Event"&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you test&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735885#M9605</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2020-08-24T10:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert using HTTP Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735886#M9606</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;

&lt;P&gt;that } was by mistake. I have corrected as suggested and checked but still, it is showing bad request message.&lt;/P&gt;

&lt;P&gt;I tried without any payload and the result was&lt;/P&gt;

&lt;P&gt;{"requestError":{"serviceException":{"messageId":"BAD_REQUEST","text":"[from : may not be null, content : must contain at least one of these (text, html or templateId), to : size must be between 1 and 2147483647, subject : may not be null]"}}}&lt;/P&gt;

&lt;P&gt;As the User is able to authenticate the request, I guess the problem is with payload only.&lt;/P&gt;


&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Email-Alert-using-HTTP-Template/m-p/735886#M9606</guid>
      <dc:creator>Sagar_Naringrek</dc:creator>
      <dc:date>2020-08-24T10:53:43Z</dc:date>
    </item>
  </channel>
</rss>

