<?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>Call the integration in the interface</title><link>https://community.appian.com/discussions/f/integrations/27125/call-the-integration-in-the-interface</link><description>Hello Appian People, 
 
 I have integration GET(Queries Data). Basically this integration search address. 
 And I call this integration in the interface. In my interface I have a texbox and search button, 
 whenever the search button is clicked if there</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Call the integration in the interface</title><link>https://community.appian.com/thread/106537?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 10:47:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:71efa163-2f68-4498-85e8-73f1a55e1f9b</guid><dc:creator>peanut</dc:creator><description>&lt;p&gt;Hi Jones,&lt;/p&gt;
&lt;p&gt;This helped, Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the integration in the interface</title><link>https://community.appian.com/thread/106463?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 07:41:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e57c7a99-8dc3-4bfa-bef6-3ec8f7ef746a</guid><dc:creator>Jones Prakash Selvaraj</dc:creator><description>&lt;p&gt;Hi, I have used the following API to implement the above (&lt;a href="http://www.postalpincode.in/Api-Details" rel="noopener noreferrer" target="_blank"&gt;http://www.postalpincode.in/Api-Details&lt;/a&gt;). Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!pinCode,
  local!integrationResult,
  local!isintegrationSuccess,
  {
    a!sectionLayout(
      label: &amp;quot;Find the post offices by Pin Code&amp;quot;,
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!textField(
                  label: &amp;quot;&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: local!pinCode,
                  saveInto: { local!pinCode },
                  refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!buttonArrayLayout(
                  buttons: {
                    a!buttonWidget(
                      label: &amp;quot;SEARCH&amp;quot;,
                      style: &amp;quot;NORMAL&amp;quot;,
                      saveInto: {
                        a!save(
                          local!integrationResult,
                          rule!JPS_INT_getDetailsByPostCode(pinCode: local!pinCode)
                        ),
                        a!save(
                          local!isintegrationSuccess,
                          and(
                            toboolean(
                              index(local!integrationResult, &amp;quot;success&amp;quot;, null)
                            ) = true(),
                            tointeger(
                              index(
                                local!integrationResult,
                                &amp;quot;statusCode&amp;quot;,
                                null
                              )
                            ) = 200
                          )
                        )
                      }
                    )
                  },
                  align: &amp;quot;START&amp;quot;
                )
              }
            ),
            a!columnLayout(contents: {})
          }
        )
      }
    ),
    a!richTextDisplayField(
      value: {
        a!richTextItem(
          text: local!integrationResult.result.message,
          color: &amp;quot;NEGATIVE&amp;quot;,
          showWhen: local!isintegrationSuccess
        ),
        a!richTextBulletedList(
          items: local!integrationResult.result.body.PostOffice.Name,
          showWhen: not(local!isintegrationSuccess)
        )
      },
      showWhen: a!isNotNullOrEmpty(local!integrationResult)
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Call the integration in the interface</title><link>https://community.appian.com/thread/106453?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 05:14:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04012def-b984-4c60-8b3d-407d6f52d764</guid><dc:creator>Harshitha Mangamuri</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;An integration will be considered successful if the system returns a status code of&amp;nbsp;&lt;/span&gt;&lt;code class="language-plaintext highlighter-rouge"&gt;200&lt;/code&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please check the value in the interface -&amp;nbsp;&lt;/span&gt;&lt;span class="gs"&gt;fv!result.statusCode = 200, the it will be success or else it is failed and we have to figure out what is the issue&lt;/span&gt;&lt;span class="gs"&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>