<?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>fetch the data from the API</title><link>https://community.appian.com/discussions/f/integrations/26527/fetch-the-data-from-the-api</link><description>How can i get the data from the api into the interface ? like in my scenario i want the movie details once i enter my movie name , and the thing as i had created the intergration using the link and it&amp;#39;s working .now i just want to know how can get the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: fetch the data from the API</title><link>https://community.appian.com/thread/104192?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 03:53:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1a3a2fd-c9a9-416e-8a93-b4bade865ca1</guid><dc:creator>viratyogi</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Integrations can be called like any other expression rules on interfaces, if it is a &lt;strong&gt;GET&amp;nbsp;&lt;/strong&gt;method&amp;nbsp;integration you can call it in local variables or anywhere else on the interface.&lt;/p&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  /* Call the integration to query the external system */
  local!externalQuery: rule!GetUnsettledTransactionList(),
  
  /* Handle the response depending on the outcome */
  local!value: if(local!externalQuery.success,
    local!externalQuery.result,
    local!externalQuery.error
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If it is a POST method integration, it can be called only in the saveinto parameter on the interface.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!buttonWidget(
  label: &amp;quot;Place Your Order&amp;quot;,

  /* Call the integration to update the external system when the button is pressed */
  saveInto: rule!AuthorizeCreditCardPayment(
    cardNumber: local!cardNumber,
    expirationDate: local!expirationDate,
    ccv: local!ccv,
    amount: local!amount,
    onSuccess: {
      /* Handle the successful response */ 
      a!save(local!result, fv!result)
    },
    onError: {
      /* Handle the error response */ 
      a!save(local!paymentErrorMessage, fv!error.message)
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For detailed explanation please refer to the following documentation link&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.3/Call_an_Integration.html"&gt;Call_an_Integration&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>