<?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: How to send the POST multipart/form-data using InvokeHTTP processor 1.20.0 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384426#M245369</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Glad it worked and you were able to do the post. If I understood your question correctly then you need to pass the series_id to the post:form:series_id multipart form property dynamically, right? If that is the case then its easy since the InvokeHttp multipart dynamic properties allows for expression language you can reference the series_id attribute you have extracted using the EvaluateJsonPath and assign it as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;post:form:series_id&lt;/STRONG&gt;: &lt;FONT color="#008000"&gt;&lt;STRONG&gt;${series_id}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Every time the invokeHttp is triggered it would evaluate the series_id expression from the incoming flowfile and assign its value before making the api invokation.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 13:35:59 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2024-03-01T13:35:59Z</dc:date>
    <item>
      <title>How to send the POST multipart/form-data using InvokeHTTP processor 1.20.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384400#M245359</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am getting the data from GetMongo Processor then i am evaluating the JSON Path using EvaluateJSONPath where i am getting series_id and then I am doing in&amp;nbsp;InvokeHTTP.&amp;nbsp; I am able to send as json but i am not able to send as form-data. Can you please suggest me what i am doing wrong here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="piyush7829_0-1709244479997.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39919iBA6EFB63BE8DAB91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="piyush7829_0-1709244479997.png" alt="piyush7829_0-1709244479997.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="piyush7829_1-1709244502313.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39920i21892F3D084A351D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="piyush7829_1-1709244502313.png" alt="piyush7829_1-1709244502313.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Before invokeHTTP the data flow is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="piyush7829_4-1709244594014.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39923i33C46816180BC82A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="piyush7829_4-1709244594014.png" alt="piyush7829_4-1709244594014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="piyush7829_2-1709244523350.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39921i2F6741E37DB1337A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="piyush7829_2-1709244523350.png" alt="piyush7829_2-1709244523350.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="piyush7829_3-1709244544565.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39922i5C9482A87C61253F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="piyush7829_3-1709244544565.png" alt="piyush7829_3-1709244544565.png" /&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, 29 Feb 2024 22:11:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384400#M245359</guid>
      <dc:creator>piyush7829</dc:creator>
      <dc:date>2024-02-29T22:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the POST multipart/form-data using InvokeHTTP processor 1.20.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384405#M245361</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 02:47:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384405#M245361</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-03-01T02:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the POST multipart/form-data using InvokeHTTP processor 1.20.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384408#M245362</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Can you provide more info on what the issue is? Are you getting error messages in the failure , retry relationships? Are you not getting any response at all? Are you sure that your api takes the data as request body and not as post form data key value as the processor description indicates :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_1-1709261465067.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39925i3E6C7310CDA60288/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_1-1709261465067.png" alt="SAMSAL_1-1709261465067.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also I dont see that you are setting the &lt;STRONG&gt;Request Content-Type&lt;/STRONG&gt; property to: &lt;STRONG&gt;multipart/form-data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here are some posts that might help get it working:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-multipart-form-data-request-with-a/m-p/240035" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-multipart-form-data-request-with-a/m-p/240035&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://palindromicity.blogspot.com/2020/04/sending-multipart-form-data-with.html" target="_blank"&gt;https://palindromicity.blogspot.com/2020/04/sending-multipart-form-data-with.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/51929208/how-to-send-multipart-form-data-via-invokehttp-nifi" target="_blank"&gt;https://stackoverflow.com/questions/51929208/how-to-send-multipart-form-data-via-invokehttp-nifi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find this is helpful please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 03:02:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384408#M245362</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-03-01T03:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the POST multipart/form-data using InvokeHTTP processor 1.20.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384414#M245364</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks that do work. But I have one more question related to same .&lt;/P&gt;&lt;P&gt;I have added as you suggested&amp;nbsp;&lt;SPAN class="table-cell"&gt;post:form:series_id : 323&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="table-cell"&gt;But I need to display value dynamically.&amp;nbsp; as I have shown in the above screenshot I am getting {"series_id" : 323} above InvokeHTTP.&amp;nbsp; I want to send that series_id which is coming in the data flow in the form. I am not able to achieve that.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="piyush7829_0-1709285530015.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39927iC78C2D34DD5FA3D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="piyush7829_0-1709285530015.png" alt="piyush7829_0-1709285530015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 09:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384414#M245364</guid>
      <dc:creator>piyush7829</dc:creator>
      <dc:date>2024-03-01T09:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to send the POST multipart/form-data using InvokeHTTP processor 1.20.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384426#M245369</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Glad it worked and you were able to do the post. If I understood your question correctly then you need to pass the series_id to the post:form:series_id multipart form property dynamically, right? If that is the case then its easy since the InvokeHttp multipart dynamic properties allows for expression language you can reference the series_id attribute you have extracted using the EvaluateJsonPath and assign it as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;post:form:series_id&lt;/STRONG&gt;: &lt;FONT color="#008000"&gt;&lt;STRONG&gt;${series_id}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Every time the invokeHttp is triggered it would evaluate the series_id expression from the incoming flowfile and assign its value before making the api invokation.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 13:35:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-the-POST-multipart-form-data-using-InvokeHTTP/m-p/384426#M245369</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-03-01T13:35:59Z</dc:date>
    </item>
  </channel>
</rss>

