<?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>How to invoke an external web service in a wizard layout between step1 and step2?</title><link>https://community.appian.com/discussions/f/integrations/12536/how-to-invoke-an-external-web-service-in-a-wizard-layout-between-step1-and-step2</link><description>Scenario : Trying to share selected options in Step1 of wizard layout to external system via integration with external web api, to retrieve complete details for step 2 screen. How to make a call within wizard in between steps.?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to invoke an external web service in a wizard layout between step1 and step2?</title><link>https://community.appian.com/thread/55774?ContentTypeID=1</link><pubDate>Mon, 28 May 2018 05:19:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea573023-e049-4963-a9d9-e06b56f5188f</guid><dc:creator>aloks0189</dc:creator><description>HI &lt;a href="/members/anushas0002"&gt;anushas0002&lt;/a&gt; as per my understanding This Integration Object invokes an API of type GET call (as you want to retrieve complete details). You can invoke this Integration Object in following ways:&lt;br /&gt;
&lt;br /&gt;
1. Upon load()&lt;br /&gt;
2. using saveInto&lt;br /&gt;
&lt;br /&gt;
If you want to query the information using Integration Object while clicking on a button, then you need to make a call to API using this Integration Object under Button saveInto. Now it all depends upon your business scenario, whether you want to make this call conditionally or unconditionally.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to invoke an external web service in a wizard layout between step1 and step2?</title><link>https://community.appian.com/thread/55765?ContentTypeID=1</link><pubDate>Mon, 28 May 2018 00:21:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:86413d60-b59a-47d7-b3b9-c6bb984ddc5f</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;You can call the external web service in the saveInto of the SAIL component which helps you to go to the step2.&lt;/p&gt;
&lt;p&gt;Below is the example code, in which the web service call is made in the button widget if the step is 2.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!employee:{ firstName:null, lastName:null, department:null, title:null, phoneNumber:null, startDate:null },
  local!currentStep: 1,
  a!formLayout(
    label: &amp;quot;SAIL Example: Onboarding Wizard&amp;quot;,
    contents:{
      a!columnsLayout(
        columns:{
          a!columnLayout(
            contents:{
              a!textField(
                label: &amp;quot;First Name&amp;quot;,
                labelPosition: if( local!currentStep = 3, &amp;quot;ADJACENT&amp;quot;,&amp;quot;ABOVE&amp;quot;),
                value: local!employee.firstName,
                saveInto: local!employee.firstName,
                readOnly: local!currentStep = 3,
                required: not( local!currentStep = 3),
                showWhen: or( local!currentStep = {1,3} )
              ),
              a!textField(
                label: &amp;quot;Last Name&amp;quot;,
                labelPosition: if( local!currentStep = 3, &amp;quot;ADJACENT&amp;quot;,&amp;quot;ABOVE&amp;quot;),
                value: local!employee.lastName,
                saveInto: local!employee.lastName,
                readOnly: local!currentStep = 3,
                required: not( local!currentStep = 3),
                showWhen: or( local!currentStep = {1,3} )
              ),
              a!textField(
                label: &amp;quot;Phone Number&amp;quot;,
                labelPosition: if( local!currentStep = 3, &amp;quot;ADJACENT&amp;quot;,&amp;quot;ABOVE&amp;quot;),
                value: local!employee.phoneNumber,
                saveInto: local!employee.phoneNumber,
                readOnly: local!currentStep = 3,
                required: not( local!currentStep = 3),
                showWhen: or( local!currentStep = {2,3} )
              )
            }
          ),
          a!columnLayout(
            contents:{
             a!textField(
              label: &amp;quot;Department&amp;quot;,
              labelPosition: if( local!currentStep = 3, &amp;quot;ADJACENT&amp;quot;,&amp;quot;ABOVE&amp;quot;),
              value: local!employee.department,
              saveInto: local!employee.department,
              readOnly: local!currentStep = 3,
              required: not( local!currentStep = 3),
              showWhen: or( local!currentStep = {1,3} )
            ),
            a!textField(
              label: &amp;quot;Title&amp;quot;,
              labelPosition: if( local!currentStep = 3, &amp;quot;ADJACENT&amp;quot;,&amp;quot;ABOVE&amp;quot;),
              value: local!employee.title,
              saveInto: local!employee.title,
              readOnly: local!currentStep = 3,
              required: not( local!currentStep = 3),
              showWhen: or( local!currentStep = {1,3} )
            ),
            a!dateField(
              label: &amp;quot;Start Date&amp;quot;,
              labelPosition: if( local!currentStep = 3, &amp;quot;ADJACENT&amp;quot;,&amp;quot;ABOVE&amp;quot;),
              value: local!employee.startDate,
              saveInto: local!employee.startDate,
              readOnly: local!currentStep = 3,
              required: not( local!currentStep = 3),
              showWhen: or( local!currentStep = {2,3} )
            ) 
            }
          )
        }
      )
    },
    buttons: a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Go Back&amp;quot;,
          value: local!currentStep - 1,
          saveInto: local!currentStep,
          showWhen: or( local!currentStep = {2,3} )
        ),
        a!buttonWidget(
          label: if( local!currentStep = 1, &amp;quot;Next&amp;quot;, &amp;quot;Go to Review&amp;quot;),
          value: local!currentStep + 1,
          saveInto: {
              local!currentStep,
              /* Call Web Service */
              a!save(local!webServiceResult, if( local!currentStep = 1, null, webservicequery()))
            },
          validate: true,
          showWhen: or( local!currentStep = {1,2} )
        ),
        a!buttonWidgetSubmit(
          label: &amp;quot;Onboard Employee&amp;quot;,
          style: &amp;quot;PRIMARY&amp;quot;,
          showWhen: local!currentStep = 3
        )
      }
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>