<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WEB Rest POST API 16.3</title><link>https://community.appian.com/discussions/f/general/19081/web-rest-post-api-16-3</link><description>Hi all, 
 for a project we need to implement an integration to a POST API that need to be used in order to retrive a list of data that need to be showed into an interface. 
 Since I don&amp;#39;t have experiences with 16.3 version, anyone that can suggest me</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: WEB Rest POST API 16.3</title><link>https://community.appian.com/thread/74808?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 22:01:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:418e61b8-c155-4a4a-ae66-03053fc9773c</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Oh sorry my mistake - I forgot that you can&amp;#39;t use a!httpQuery() for a POST (you must use a process model in this case). The best way to do this is to set up your http query in a process to run first. Then, save the results into a process variable and pass the variable as an input to your form. Here&amp;#39;s an example of how I&amp;#39;d suggest setting it up (ignore the deprecated node - yours should display correctly in 16.3):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/integration-with-POST.png" /&gt;&lt;/p&gt;
&lt;p&gt;You must use activity chaining to query the data first using this node. Then, save the output of the HTTP Query into a process variable that you can reference in your interface. Note: you might need to use a function like a!fromJson() if your response body is JSON.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/960x720/__key/communityserver-discussions-components-files/11/httpquery.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Rest POST API 16.3</title><link>https://community.appian.com/thread/74804?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 20:38:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c32cc6a5-2ac0-4c6b-9c45-e29b8b42689f</guid><dc:creator>antoniom0002</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;first of all, really thanks for you suggestion.&lt;br /&gt;I tried in this way but I don&amp;#39;t understand how to use it into the process model in order to store the response of the API.&lt;/p&gt;
&lt;p&gt;I tried also the following:&lt;/p&gt;
&lt;p&gt;a!httpQuery(&lt;br /&gt;url: &amp;quot;URL&amp;quot;,&lt;br /&gt;method: &amp;quot;HEAD&amp;quot;,&lt;br /&gt;headers:{&lt;br /&gt;a!httpHeader(&lt;br /&gt;name: &amp;quot;Content-Type&amp;quot;,&lt;br /&gt;value: &amp;quot;application/json&amp;quot;&lt;br /&gt;)&lt;br /&gt;}&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;but unfortunately it seems that we cannot use POST with this httpQuery function.&lt;/p&gt;
&lt;p&gt;Can I ask you if you have a snippet or some example that can clarify better how to configure it and save the response into the process model?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WEB Rest POST API 16.3</title><link>https://community.appian.com/thread/74802?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 20:18:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:05cea143-ea73-4a54-ab79-3abf3cf4db62</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The alternative available in 16.3 is the &lt;a href="https://docs.appian.com/suite/help/17.2/HTTP_Query_Smart_Service.html"&gt;HTTP Query&lt;/a&gt; function / smart service. This function doesn&amp;#39;t have nearly as many features as the Integration design object (which was introduced in 17.2), but it should still work for basic POST requests where you retrieve data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>