<?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>question Re: NiFi InvokeHTTP POST JSON in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307943#M223419</link>
    <description>&lt;P&gt;Thats weird.. did you scroll the attributes list down (just in case its that simple)?&amp;nbsp; &amp;nbsp;i cant see the full modal so not sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The config of each attribute looks okay so does the json.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 21:33:25 GMT</pubDate>
    <dc:creator>stevenmatison</dc:creator>
    <dc:date>2020-12-17T21:33:25Z</dc:date>
    <item>
      <title>NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307861#M223374</link>
      <description>&lt;P&gt;I'm totally new to NiFi and learning as I go, but am against a hard deadline and need urgent assistance. I was tasked to create a data interface between two learning systems to send course completion data.&lt;/P&gt;&lt;P&gt;I'm creating a flow to send course completion data from one system to another and have a JSON formatted file (to send as HTTP body to send as a CURL post?)&lt;/P&gt;&lt;P&gt;This is the sample JSON data that I've created so far:&lt;BR /&gt;{"user_id":10042,"username":"de","course_id":"C00230","completed_on":"12-02-2020","SCORE":100}&lt;/P&gt;&lt;P&gt;The suggested HTTPS Curl request format is provided below.&lt;BR /&gt;curl -v -X POST -d "j_username=admin&amp;amp;j_password=admin&amp;amp;userID=MORRW001&amp;amp;crsID=C00565&amp;amp;dateCompleted=2020-11-16&amp;amp;testScore=100&amp;amp;courseType=a" &lt;A href="https://lms.dev.test.net/jw/web/json/data/" target="_blank"&gt;https://lms.dev.test.net/jw/web/json/data/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How do I configure the InvokeHTTP processor to send it correctly? Do I need to reformat the JSON data so it's in the correct format for the curl format shown above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remember I'm just a NiFi novice, so details, including screenshots would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:52:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307861#M223374</guid>
      <dc:creator>GMAN</dc:creator>
      <dc:date>2020-12-16T17:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307900#M223392</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/83765"&gt;@GMAN&lt;/a&gt;&amp;nbsp;&amp;nbsp;Here is my try to help you further.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flow" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29778iE40406E027F8AE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-12-17_HCC_InvokeHTTP_flow.png" alt="flow" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;flow&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at the picture of the &lt;STRONG&gt;InvokeHTTP&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="InvokeHTTP" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29779iC67EC9B1D31575EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-12-17_HCC_InvokeHTTP_InvokeHTTP.png" alt="InvokeHTTP" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;InvokeHTTP&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From my experience most options can mostly be left to default values.&lt;/P&gt;&lt;P&gt;Your Json-body should be fine and will be send with the request.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Remarks:&lt;BR /&gt;- &lt;STRONG&gt;Authenticaton/Authorization&lt;/STRONG&gt;: You have to try the two possibilities I know. For the second you have to add custom-property "Authorization" with the plus symbol on the right above.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- &lt;STRONG&gt;Accept&lt;/STRONG&gt;: Concerns the response format not sure wether you will need this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you can first build your request in Postman and after successfull execution then click to "code" -&amp;gt; "HTTP". There you can see the details needed for the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the "&lt;STRONG&gt;Settings&lt;/STRONG&gt;" of the&lt;STRONG&gt; InvokeHTTP&lt;/STRONG&gt; you can autoterminate the "original" flowfile.&lt;BR /&gt;For "Retry" you can use the shown processor with default values.&lt;BR /&gt;All "Failure" or "No retry" go to some error-handling.&lt;BR /&gt;With "Response" you can go further in your flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps you to come forward.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 07:31:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307900#M223392</guid>
      <dc:creator>justenji</dc:creator>
      <dc:date>2020-12-17T07:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307916#M223402</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67599"&gt;@justenji&lt;/a&gt;&amp;nbsp; &amp;nbsp;Great response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/83765"&gt;@GMAN&lt;/a&gt;&amp;nbsp; I have some templates that may help you get a head start:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/steven-matison/NiFi-Templates" target="_blank"&gt;https://github.com/steven-matison/NiFi-Templates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 2 InvokeHttp Examples.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 13:58:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307916#M223402</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-12-17T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307922#M223405</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;Thanks for telling me about the templates.&amp;nbsp;&amp;nbsp; I downloaded these and will use as a guide.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 15:21:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307922#M223405</guid>
      <dc:creator>GMAN</dc:creator>
      <dc:date>2020-12-17T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307938#M223416</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;I used your template and tried to assign attributes using EvaluateJSONPath as show here: &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvaluateJSONPath.JPG" style="width: 966px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29789i2AB26923E2A70FD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="EvaluateJSONPath.JPG" alt="EvaluateJSONPath.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the JSON data entering the EvaluateJSONPath processor.&lt;/P&gt;&lt;P&gt;{"user_id":"68","course_id":"HA044","completed_on":"12-15-2020","score":null}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However only the "crsID" and "dateCompleted" attributes are showing as attributes in the queue after this processor and I don't understand why.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvaluateJSONPathqueue.JPG" style="width: 393px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29790iB3431903A85C1692/image-size/large?v=v2&amp;amp;px=999" role="button" title="EvaluateJSONPathqueue.JPG" alt="EvaluateJSONPathqueue.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 20:38:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307938#M223416</guid>
      <dc:creator>GMAN</dc:creator>
      <dc:date>2020-12-17T20:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307943#M223419</link>
      <description>&lt;P&gt;Thats weird.. did you scroll the attributes list down (just in case its that simple)?&amp;nbsp; &amp;nbsp;i cant see the full modal so not sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The config of each attribute looks okay so does the json.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 21:33:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307943#M223419</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-12-17T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307952#M223423</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;You were correct as the other attributes were listed at the bottom of the Attribute Values. &amp;nbsp; I didjn't notice the scroll bar and needed to scroll down.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 01:58:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307952#M223423</guid>
      <dc:creator>GMAN</dc:creator>
      <dc:date>2020-12-18T01:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi InvokeHTTP POST JSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307990#M223438</link>
      <description>&lt;P&gt;Excellent news.&amp;nbsp; Can you accept the first 2 responses to close this solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 13:42:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-InvokeHTTP-POST-JSON/m-p/307990#M223438</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-12-18T13:42:17Z</dc:date>
    </item>
  </channel>
</rss>

